request

sambourg
Good Morning how can i make changes on the first page of Opigno i want to write new titles, new images on the code how can i make those changes ? how can i find the right file with fireBug ?
Profile picture for user James Aparicio
James Aparicio

Hi sambourg,

Hi sambourg, To change the home page using the WYSIWYG you can at admin/appearance/settings/platon. If you want to do in in code you can clone the page.tpl.php and rename it page--front.tpl.php in the platon theme folder. You can also create a sub theme. Best regards
Scott

Hi Opigno!

Hi Opigno! Long time no speak, hope you are all well.. I'm trying to do something similar here which is to have my own custom front page for general info (register interest, contact info etc). I've copied the page.tpl.php file and renamed it page--front.tpl.php and placed it in my subtheme folder. However inside the file I can only see the following 3 rows. <?php print $platon__header; ?> <?php print $platon__site_content; ?> <?php print $platon__footer; ?> The front page override is working however I was expecting more content in the file to play around with...When I look at the video on sub themes there seems to be lots more content in the file: video @ https://www.opigno.org/en/create-subtheme (9minutes in) Am I using the wrong file? Any guidance much appreciated! Thanks Scott
Profile picture for user James Aparicio
James Aparicio

Hi Scott,

Hi Scott,

If you see carefully, for each of those variables, there is another template file. ex: (platon--header.tpl.php)

You can look at the file page.tpl.php inside /themes/bartik/template, you have information on what variables are available to you 

*Available variables: * General utility variables: * - $base_path: The base URL path of the Drupal installation. At the very *   least, this will always default to /. * - $directory: The directory the template is located in, e.g. modules/system *   or themes/bartik. * - $is_front: TRUE if the current page is the front page. * - $logged_in: TRUE if the user is registered and signed in. * - $is_admin: TRUE if the user has permission to access administration pages. For example you can check $is_front=true and $logged_in=false print something different. Best regards  
Scott

Thanks James, unfortunately I

Thanks James, unfortunately I will struggle to start from scratch on this as I don't really have the expertise. If I wanted to go for another "off the shelf theme" for a more media or shopping site look for my front page could I do something like install the new theme and then make it a sub theme of my lifeuncoached theme (which is a subtheme of platon created by opigno with no page.tpl.php or page--front.tpl.php currently) and then in that new theme folder rename the page.tpl.php to page--front.tpl.php and copy the original platon theme page.tpl.php to the new theme folder. I'm hoping that would mean the new theme would then only apply to the front page and everything else would be the same. I hope that would mean I am able to add the various blocks to my new regions via the Admin console rather than via editing php files etc. Not sure if this is possible so welcome your comments before I start fiddling around and break everything! :) Thanks Scott
Scott

Thanks James, unfortunately I

Thanks James, unfortunately I will struggle to start from scratch on this as I don't really have the expertise. If I wanted to go for another "off the shelf theme" for a more media or shopping site look for my front page could I do something like install the new theme and then make it a sub theme of my lifeuncoached theme (which is a subtheme of platon created by opigno with no page.tpl.php or page--front.tpl.php currently) and then in that new theme folder rename the page.tpl.php to page--front.tpl.php and copy the original platon theme page.tpl.php to the new theme folder. I'm hoping that would mean the new theme would then only apply to the front page and everything else would be the same. I hope that would mean I am able to add the various blocks to my new regions via the Admin console rather than via editing php files etc. Not sure if this is possible so welcome your comments before I start fiddling around and break everything! :) Thanks Scott
Scott

Thanks James, unfortunately I

Thanks James, unfortunately I will struggle to start from scratch on this as I don't really have the expertise. If I wanted to go for another "off the shelf theme" for a more media or shopping site look for my front page could I do something like install the new theme and then make it a sub theme of my lifeuncoached theme (which is a subtheme of platon created by opigno with no page.tpl.php or page--front.tpl.php currently) and then in that new theme folder rename the page.tpl.php to page--front.tpl.php and copy the original platon theme page.tpl.php to the new theme folder. I'm hoping that would mean the new theme would then only apply to the front page and everything else would be the same. I hope that would mean I am able to add the various blocks to my new regions via the Admin console rather than via editing php files etc. Not sure if this is possible so welcome your comments before I start fiddling around and break everything! :) Thanks Scott
Scott

Using the module ThemeKey for

Using the module ThemeKey for this, works really well