Change the header in the 'Products Sidebar'

Need help? Please give a detailed explanation of your problem.
Post Reply
User avatar
Agalassi1792
AllPro Expert
AllPro Expert
Posts: 510
meble kuchenne Mikołów Knurów Czechowice-Dziedzice
Joined: Tue Nov 18, 2014 12:42 pm
Website: apwt.bluezenith.com

Change the header in the 'Products Sidebar'

Post by Agalassi1792 »

Hello,

So on product pages, I want to change the word 'Products' in the sidebar to say 'Events'. Can I do this, and if so how? When I go to edit the theme template, all I see is a shortcode to add the widget, but I do not see how I can change that header from 'Products' to 'Events'. So in other words, I want to customize the word that appears on the top of the 'related products' sidebar on the products page.

Let me know about this, thank you.
User avatar
NoahBaldwin
Support Team
Support Team
Posts: 117
Joined: Fri Jan 04, 2019 11:21 am
Website: www.allprowebtools.com

Re: Change the header in the 'Products Sidebar'

Post by NoahBaldwin »

This requires adding a few lines of custom CSS. First, you need to hide the header and then create a new header to be displayed with the text you want. Both blocks of code (below) are required. The first one hides the original header and the second creates the new header with the text you want to display. The code is as follows:

h4.product-heading.side-heading {
visibility: hidden;
}

h4.product-heading.side-heading:after {
content: "Events";
visibility: visible;
display: block;
}
User avatar
Agalassi1792
AllPro Expert
AllPro Expert
Posts: 510
Joined: Tue Nov 18, 2014 12:42 pm
Website: apwt.bluezenith.com

Re: Change the header in the 'Products Sidebar'

Post by Agalassi1792 »

Hi Noah,

Thank you for your prompt reply.

This solution worked for me, thank you. I appreciate your help!
Post Reply