-
AuthorPosts
-
May 13, 2022 at 12:41 pm #1351663
Hi,
At the bottom of my home page, I displayed 4 icons with text (a banner on a red background). I would like to display this banner with the 4 icons on all the pages of the site. I did it manually on some pages, but I don’t know how to display it on shop pages as well (like product category pages). Could you help me please ?
Thank you very much,
Best regards,
AudreyMay 15, 2022 at 9:09 pm #1351874Hey laboiteapixels12,
Thank you for your patience and for the login, to add this red area above your footer on all pages I added a “before_footer” widget above your footer with this function in your child theme functions.php:add_action('ava_before_footer','avia_above_footer'); function avia_above_footer(){ dynamic_sidebar( 'before-footer' ); }
and then in your widgets I added a HTML widget with the element shortcode:
Then I added this css in the WordPress ▸ Customize ▸ Additional CSS field:#before_footer { background-color: #a25442; border: none; } #before_footer .container { padding: 20px 50px; } #custom_html-5 { padding: 0; }
and now it shows on all of your pages including the product pages, but a couple pages like your homepage now shows this red area twice, you just need to remove the element from the page if you like the widget version that I created.
Please clear your browser cache and check.Best regards,
MikeMay 18, 2022 at 4:50 pm #1352211Hi Mike,
Wow it’s perfect !! Thank you very much, it’s exactly what I wanted.
A little question : how do you find the element shortcode you add in the HTML widget ? If I have to do this again on an other site, I would like to understand.THANK YOU for your precious help
Best regards,
AudreyMay 18, 2022 at 7:11 pm #1352219Hi,
Glad to hear, I Enabled the Avia Layout Builder Debugger and copied the section shortcode.
You can also use the WordPress Classic Editor shortcode wand in a default post or page to create an element and the shortcode will show in the Classic Editor for you to copy.Note that full-width elements, such as the color section don’t always behave when nested in other elements such as widgets, so in the widget you see that I removed the color section container and added an html div to take it’s place.
Unless there is anything else we can assist with on this issue, shall we close this then?
Best regards,
MikeMay 19, 2022 at 8:31 am #1352248Hi Mike,
Ok I understand, thank you very much !! You can close this ticket,
Have a good day !Best regards,
AudreyMay 19, 2022 at 10:18 am #1352276Hi,
Great, I’m glad that Mike could help you out. I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘Add footer content to all product category pages’ is closed to new replies.