Hi,
i’ve been looking on many template php files to find any solution but i’m still wasting my time.
Let me explain.
I’ve got a slider from meta slider in the homepage and in any other standard page and it work fine.
I wrote this in the header.php file:
But when I go to the blog page or the product page the slider disappear.
Where do I need to add the code ?
thanks for your help.
problem with code tags…
Hi Ben
Thanks for running Vantage.
Each page in Vantage has a MetaSlider drop down in the right column. Use that to add a slider per page.
Hi,
I did it already. It works for standard page but not for blog category or woocommerce page.
Running a full width slider for those pages is unfortunately a custom development task. We recommend https://codeable.io/ if you’d like to grab a quote. You’d need a child theme with a modified header file that has a conditional that loads a slider based on what type of page it is – that’s one way at least.
Sorry I don’t have more.
I tried this solution but it seems that woocommerce override a part of the header.php. Or maybe i’m totally nut…
Wich php files are used when showing the shop page?
header.php will be rendered on both regular and WooCommerce pages.
This is what i wrote in the header.php to get the slider in the header:
how you use the code tag? It’s not working.
Hi Ben
You need to write:
square bracket code square bracket
Then insert your code snippet
then write square bracket forward slash code square bracket.
This is exactly what i did. Do i need to write the tag for each line?
[/code]
No it should work as a block. Let me edit the thread and try resolve it.
ok thanks
Sorry, I’m not sure where the forum is battling with this. When you pasted
above in code tags that worked. Is there perhaps another square bracket in your code snippet?Alternatively you could upload a text file to your media library and link to it.
no, there is no brackets. Can you edit my post to see the code i pasted?
I unfortunately can’t see any code in the admin either.
Can you see this link?
https://docs.google.com/document/d/1hWzT4LSdBRGIxQn0PdxxwJgbT_I-Ro8n2qAESHGvbVU/edit?usp=sharing
I can, thank you.
I don’t see a conditional statement there to render a slider based on the page or post type. I’m afraid we’re unable to develop this for you. We do our best to assist with very small, one or two line customisations but overall we don’t offer a theme customisation service and would recommend codeable.io in that event.
Normally, if i don’t define conditions it would apply to any type of page. I’m i right?
Ok i will digg in to set a condition to post type.
Something like
Has to be removed. You need to handle slider rendering yourself:
WordPress Conditionals: http://codex.wordpress.org/Conditional_Tags
WooCommerce Conditionals: http://docs.woothemes.com/document/conditional-tags/
WordPress do shortcode: http://codex.wordpress.org/Function_Reference/do_shortcode
Thanks a lot for your help. I’ll try this. all the best!
For sure. Good luck.
It finally works with this code:
We’ll need to look into why that’s happening :)
Stoked you made it work – all the best!
GRRRrrrr! These tag really don’t want to do it right…
Lol! no way it gonna work… [o(
Maybe it’s just because i’m french… racist code !
Hi,
I’m trying to get the slider working on the blog page also.
Can you please help me with the code?
Hi Joost_
Select the Default or Full Width page template in the right column, then select the Meta Slider you want from the Meta Slider drop down menu. Finally click over to the Page Builder tab and insert the Post Loop widget.
For further assistance here please open a new support thread.
Thanks.
Did that work for you Joost? Anyone?
This issue is making me lose my sanity. please help.
Hi Joey
I sent through the same advice on another thread now, really quick to implement. Give it a go.
Hi Andrew, which other thread?
Hi Joey
Going over our conversations I think it’s this one:
https://siteorigin.com/thread/meta-slider-in-blog-posts/
Please take a look at my solution there at the above link. If you run into any problems please open a new support thread and I’ll be happy to assist: https://siteorigin.com/new-thread/