antonella 1 Report post Posted October 11, 2011 Hello, I would like to change the archive titles that appear "From the monthly archives:" to something else (such as "News by month:"). I located the text in the section.postsinfo.php file. I made the changes and uploaded the file in my sections folder in my platformBASE theme. However, the changes are not being reflected. (see sample here: http://motivawebconsulting.com/kv/2011/07/) What am I doing wrong? Thanks. Share this post Link to post Share on other sites
kastelic 6 Report post Posted October 11, 2011 The method to override a section template is a little different than the one you have done. Check http://www.pagelines.com/docs/custom-sections under "Overriding Section Templates" Share this post Link to post Share on other sites
antonella 1 Report post Posted October 12, 2011 I created a file called template.postsinfo.php, copied the contents from the section.postsinfo.php file and placed it in the root folder of the theme folder (not the sections folder). But it's still not working. Do I have to add anything to the functions file or change anything else? Thanks. Share this post Link to post Share on other sites
antonella 1 Report post Posted October 13, 2011 Hi, I've been looking at some other posts about overriding page templates, and trying those methods, but still to no avail. There is something I'm missing. From what I understand: 1) create a template.postsinfo.php file 2) copy over the contents from the section.postsinfo.php file. *What's not clear here after reading other posts is whether I copy all of the contents or just a portion. Here's the full code: [code] 'Shows information about posts being viewed (e.g. "Currently Viewing Archives from...") Not shown on blog pages.', 'workswith' => array('main-posts'), 'icon' => PL_ADMIN_ICONS . '/postsinfo.png' ); $settings = wp_parse_args( $registered_settings, $default_settings ); parent::__construct($name, $id, $settings); } function section_template() { if(is_category() || is_archive() || is_search()): ?> "" "" "" display_name; ?> "" Share this post Link to post Share on other sites Danny+ 1,327 Report post Posted October 13, 2011 Hi Antonella, What I would do is this: 1. Copy the code form section.postsinfo.php into your favourite text editor, make the appropriate changes and save the file. Call it something like this: section.postsinfo2.php. 2. Upload the new section.postsinfo.php you just created to /themes/platformbase/sections/ 3. Goto your functions.php file located in /themes/platformbase/ and search for this: [code]// ABOUT HOOKS --------//[/code] Then add this code above it: [code] pagelines_register_section('PageLinesPostsInfo2','postsinfo2', null, array('child' => true) ); [/code] Save the functions.php file and then go to Platform Settings -- > Template Layout, select the correct template you wish to use this section on and now you should see a new section called Post Info 2 drag that across replacing the old postsinfo section. That should do the trick. Please search our forums, before posting! Share this post Link to post Share on other sites Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Login via PageLines Signup To PageLines Sign in to follow this Followers 0
Danny+ 1,327 Report post Posted October 13, 2011 Hi Antonella, What I would do is this: 1. Copy the code form section.postsinfo.php into your favourite text editor, make the appropriate changes and save the file. Call it something like this: section.postsinfo2.php. 2. Upload the new section.postsinfo.php you just created to /themes/platformbase/sections/ 3. Goto your functions.php file located in /themes/platformbase/ and search for this: [code]// ABOUT HOOKS --------//[/code] Then add this code above it: [code] pagelines_register_section('PageLinesPostsInfo2','postsinfo2', null, array('child' => true) ); [/code] Save the functions.php file and then go to Platform Settings -- > Template Layout, select the correct template you wish to use this section on and now you should see a new section called Post Info 2 drag that across replacing the old postsinfo section. That should do the trick. Please search our forums, before posting! Share this post Link to post Share on other sites