2012-03-29, 03:04:58
How can I show a parent page header image in child pages as well? What code do I use?
same header image for parent and child pages
|
2012-03-29, 03:04:58
How can I show a parent page header image in child pages as well? What code do I use?
2012-03-29, 03:52:02
Can you explain more about your problem?
If the header image has to be in every page just add it in the template, if not you can add it in the editor..
2012-03-29, 15:28:57
lucamusolesi Wrote:Can you explain more about your problem? Currentyl I am using this code for dynamic header images for individual pages. Code: <div id="headerpic"><img src="<?php get_site_url(); ?>data/uploads/headerpics/<?php get_page_slug(); ?>.jpg"></div> But I want the child pages (and maybe third level pages as well) to have the same image as the parent page. How do I get that?
2012-03-29, 15:47:01
andyash Wrote:Currentyl I am using this code for dynamic header images for individual pages. For second level pages change your code to: Code: <div id="headerpic"> For all levels with the I18N plugin: Code: <div id="headerpic">
2012-03-29, 19:10:53
This works great. Thanks.
|
« Next Oldest | Next Newest »
|