Archived topic
Problems adding Revolution Slider Banner to Home/Front Page
9 replies · Started by Edward on April 22, 2021
My website is https://eliteluxuryholidays.com
I am running the latest version of everything.
I have created a Revolution Slider slide which looks similar to the one on this website http://masonhorvath.com on the home/front page to add to my website on the home/front page.
I have tried to do this by doing the following and nothing seems to work: -
1. Added the Revolution Slider short-code to a page header element and specified it for the front page and excluded the other pages and posts etc.
2. Added it directly to the home/front page - when I do this I get a block error and when I inspect it, it doesn't show anything significant.
3. Same as 2. but added the short-code as a short-code block.
4. Same as 2. but added the short-code as a HTML block.
I have disabled my caching plugins and would really appreciate your help with this.
Thanks
Ed
Hi Ed,
Could you try just add[rev_slider alias="template-1"]in a shorcode block instead of adding [rev_slider alias="template-1"][/rev_slider]?
Let me know :)
Hi Ying,
Thanks but it didn't work. I published it so you can see what I see on the home page.
https://eliteluxuryholidays.com/
Ed
Hi there,
If the shortcode didn't work when you added it as a content within the frontpage then there must be an issue w/ it.
It's either the shortcode had something wrong with it or the plugin itself has issues.
Have you tried testing it on a blank page with the shortcode as the only content?
Note: Revslider is a third party-plugin. It's outside of our scope of support as it isn't something the theme controls. I recommend asking it's plugin support/developer about this issue.
Hi Elvin,
Thanks for your response and sorry for the slow reply.
I have tried adding the code to a new page and it didn't work.
Can you tell me how to add a new page header element to achieve this instead please?
Thanks
Ed
If the shortcode doesn't work on a new page, then there's some issue with the shortcode itself, we can't do anything about it.
I would recommend reaching out to the plugin or whoever generates the shortcode for you.
Hi Ying, I understand but what im asking now is how else can we do this.
I can see that the theme comes with a page header element which can be modified to create a banner.
How can I do that to create a banner like the one on this website http://masonhorvath.com but on my website?
Do you mean this section?
https://www.screencast.com/t/ZKskK9zO0pS
You can use a block element which is the Gutenburg version of hook element/header element if you are not familiar with code.
https://docs.generatepress.com/article/block-element-overview/
Choose hook as block type, choose generate_after_header as hook, choose location depends on your needs.
Hope that helps :)
Thanks Ying but I have worked out how to do it now so we can close this.
Glad to hear that :)