jasonfoo 0 Report post Posted June 3, 2011 Hi I've set the posts page to a specific page eg. Blog. I've got banners running using the banner set and the meta data for the other static pages. Is there a way/a hook I can use so I can place my banners back above the brand area, and at the bottom of the 'more foot' area on my post page? Thanks! Jason Share this post Link to post Share on other sites
catrina 103 Report post Posted June 3, 2011 Is there a way/a hook I can use so I can place my banners back above the brand area, and at the bottom of the 'more foot' area on my post page? You can use the pagelines_before_branding hook (for adding above he brand area) and the pagelines_before_footcols hook (for adding below the morefoot area as long as the footer sidebars are enabled). Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
jasonfoo 0 Report post Posted June 3, 2011 Thanks Catrina My php isn't so hot - how would I add this to my base child theme? Share this post Link to post Share on other sites
kastelic 6 Report post Posted June 3, 2011 Check out this page for info on using hooks: http://www.pagelines.com/docs/base-child-theme but can't you just drag the Banners Section in place in Template Setup (in the Site Header and MoreFoot templates) and then hide them on the individual pages you don't need to see them on? Share this post Link to post Share on other sites
jasonfoo 0 Report post Posted June 4, 2011 I want to see them on all pages, including the posts page, which it currently doesn't as the theme seems to ignore it for all but that page. I'll take a look Jimmy, thanks. Share this post Link to post Share on other sites
jasonfoo 0 Report post Posted June 5, 2011 Ok, will need a little help here. I gather I can use a conditional tag to specify a certain page: is_page('blog'); How do I go about then saying, if the above is true, do this: ;add_action('pagelines_before_branding','addbanner'); function addbanner(){ <-- I want to call in the Pagelines Banner section from the template setup area --> } As a side note, it's really inconvenient that the page you select as your posts page on WP has all the meta features disabled. I'm sure there may be some good reasons, but looking to an update in the future that hopefully adds these features in for the elected post page. Thanks in advance! Share this post Link to post Share on other sites
catrina 103 Report post Posted June 5, 2011 That is a function that will need to be added to the functions.php file (accessible through Appearance > Editor). Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
jasonfoo 0 Report post Posted June 5, 2011 Hi Catrina I know that. What I need help with is the php itself. I could stick a jpg in there, but I was hoping there was a cleaner (read: better) way of calling in the actual banner module instead? Share this post Link to post Share on other sites
catrina 103 Report post Posted June 5, 2011 Ah, I see. You can try using the filter for banners: pagelines_default_banners It would be used this way: add_filter( 'pagelines_default_banners', 'custom_function' ); Replace custom_function with a name you want (so you can identify it more easily). See here for more info on hooks and filters: http://codex.wordpress.org/Plugin_API#Hook_in_your_Filter Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
jasonfoo 0 Report post Posted June 5, 2011 Thanks Cat for the filters. Going to have to try and get some help on this from someone despite reading up on all the helpful links lol. I don't seem to be getting anywhere with this, as php is a bit above my head just now as I'm not really versed in it just now. I can't get my head around creating a script to do this: 1) when page is 'blog'; 2) display pagelines_default_banner module in these areas: pagelines_default_banners and pagelines_before_footcols If there is any staff that could help me on this, because I've bought the dev version of Platform Pro. In my eyes anyway, it's a missing feature not being able to adjust the meta settings for the postpage. Share this post Link to post Share on other sites
cmunns 16 Report post Posted June 6, 2011 You are close with the conditional. It should be: ` add_action('pagelines_before_branding','addbanner'); function addbanner(){ if (is_home()): endif; } ` I think it might be easiest to setup a page with meta values as you want them. THen view the source and copy the banner HTML into the function above. Share this post Link to post Share on other sites
jasonfoo 0 Report post Posted June 6, 2011 Thanks Adam!!! I was wondering, is there away to refine it, like in the pageline video for get_search_form(); add_action('pagelines_before_branding','add_header_banner'); function add_header_banner(){ if (is_home()): get_pagelines_banners(); endif; } That was my hamfisted approach haha. I did try the above but it didn't work, but adding my html worked surrounding with ?> <?php Platform Pro is quite remarkable having used several other themes/frameworks. The one feature I would request is the ability to use the meta settings on the elected posts page. Share this post Link to post Share on other sites
cmunns 16 Report post Posted June 7, 2011 Don't worry this is something that is definitely being worked on Share this post Link to post Share on other sites