Hi guys.
I would create a page on my blog full size by using the Revolution slider plugin. Is there a way to disable the background on individual pages to create the full page?
Such as:
http://revolution.themepunch.com/wordpress-photography-slider/
Hi
You can disable the background image for a specific post or page by adding a conditions in td_background_render.php file like here: http://screencast.com/t/UHoNdObM
if (is_page(id) or is_single(id)){
return;
}
To get the page/post id please follow this link: http://screencast.com/t/NV3UvnuT Use is_page() for pages and is_single() for posts.
Hope this help!
Thanks!
Hi
To achieve the same functionality for the footer the code it’s a bit different:
– you have to add the pages/posts ids in an array like here
$excluded_pages = array('id1','id2','id3');
– add this code in footer.php like here: http://screencast.com/t/3mTmBhAB84x7
$excluded_pages = array('id1','id2','id3');
$excluded_id = get_the_ID();
if (td_util::get_option('tds_footer') != 'no') {
if (!in_array($excluded_id, $excluded_pages)){
td_api_footer_template::_helper_show_footer();
}
}
The result should be like here: http://screencast.com/t/u6GIz1zRL
Thanks!
I must be doing something wrong, and I’ve placed the code you provided me in the footer.php file and does not work, still leaving the footer. What can I be doing wrong?
http://snap.ashampoo.com/uimrBAmR
Page: http://picrun.es/empresas-de-guadalajara-y-madrid/
-
This reply was modified 10 years by
posonty.
Hello,
Please make sure you use the code as Andrei provided and simply change the page id’s I tested this again and worked as expected. You have to change the existing code as well. Paste the code over the existing function not just the first 2 lines:
I used it like so: http://screencast.com/t/uRbfiaxu
Please compare my code with yours from the screenshot you provided.
Thank you!
OK! Now if it worked ..
When upgrading to a new version would I lose these changes ?, if so, how I can do to keep these changes every time you update ?. Thank you and not for the theme (which is fantástcio) but for the great support that you give to novice like me. CONGRATULATIONS!
Hi,
Unfortunately this file will probably get changed in the future but i doubt this specific code/function will be altered so just keeping this function in a separate text file as back-up and simply replacing the function after an update should do the trick.
Have a nice day!
