Hello,
We bought another Newspaper theme for our second website and we need a little help with the header pic for the pages (pages, not posts.) On our first website with your help, we managed to set up our header pic on every post and on each category, with the help of this guide by Bogdan:
https://forum.tagdiv.com/topic/header-imageevery-categoryevery-post-different-image/
example: http://www.ayrton-senna.net/monaco-grand-prix-1989/
We applied this guide on our new website (everything is working properly), but we would like to add the header pic to the pages too, not only posts. We tried following the instructions above on the page file itself but it failed. Can you please change the instruction and hel us,so it applies on page .php files?
Thank you for your time and support.
Hello AyrtonSenna – A Tribute to Life,
I suppose that you want to add a new image for each page, right? So, please notice that you can do this thing just only use the Visual Composer and insert with Single Image element your desired photo where you want to appear in the page, like this -> http://screencast.com/t/yL4u4cPlSbH
Hope this helps!
Thanks.
Thank you Catalin for your message.
That’s right, one pic (same) for all of the pages! What you suggested is a nice idea but it’s not gonna work for our design. Option we used on single post (https://forum.tagdiv.com/topic/header-imageevery-categoryevery-post-different-image/ ) is perfect for what we need. That is a solution you recommended to us for our first website.
There is a huge visual difference.
Example with Visual Composer image :
http://picpaste.com/pics/4INUI72P.1476106305.jpg
Example we integrated in a singlepost.php following the instructions above (as in singlepost.php)
http://picpaste.com/pics/OQV5Iizr.1476106340.jpg
We want to apply the SAME on singlepage.php If you have a look at the post on the link provided above, you will se that pic isn’t inside a td-main-content-wrap div but above it.
This link below and solution is of key importance for what we are doing, only difference is that we want to do THE SAME for singlepage.php (single page).
https://forum.tagdiv.com/topic/header-imageevery-categoryevery-post-different-image/
Thank you for your effort
Hello,
Unfortunately pages cannot have an image outside of the content. They are a different matter altogether. I;m not even sure about the difference between the 2 images you pointed out. One is up next to the menu and the second one has a bit of padding. That’s all. You can add full width images on pages if you want by stretching the row and content like this example homepage: http://demo.tagdiv.com/newspaper_travel/
To do that simply create a row in visual composer and then select stretch row and content and then add an image to it like so: http://screencast.com/t/0N7logJP797
If you prefer the coding method, you will need to modify a page template. There are 3 page templates in our theme: http://screencast.com/t/5f6U6nfgw7
You can edti the page templates and add images as the category images like so:
<?php
if (is_page(13)) {
echo do_shortcode('[vc_row][vc_column][vc_single_image image="887"][/vc_column][/vc_row]')
}
elseif (is_page(14)){
echo do_shortcode('[vc_row][vc_column][vc_single_image image="886"][/vc_column][/vc_row]')
}
?>
I hope this helps.
Thank you!
Thank you Bogdan so much, your instructions achive what we want as a header image.This is our second Newspaper theme for less than a year and we didnt have any technicals problems with it,only minor perplexities that you helped solve.
We very much appreciate your support and professionalism.
Kind Regards from European Fans of Ayrton Senna