Same Button throughout my website

I am always changing my call to action button that repeats on a lot of my website pages.

What is the best way to convert my buttons to a dynamic button, that when once I change one, it changes all of them “Text” & “Link” throughout my whole website?

I looked at Loopers & Json and it seems that it only pulls JSON data from Looper Customer inside of the section, not anything outside or on all pages.

Thank you in advance!

Hello @lostimagination,

Thanks for writing in!

With the requirements that you need for your Call to Action button, you can go to Cornerstone > Global Blocks and create a global block that has your Call to Action button. You can then use the global block shortcode and put it anywhere in your site. Once you edit the block, the changes will be applied to the rest of the pages that has the global block shortcode. Perhaps this documentation can help you understand how the Global Block works:

Or check out this video:

Best Regards.

Thank you! That works!

Hello @lostimagination,

Glad that we were able to help you. Please feel free to open a new thread if you have any more concerns.

Thanks

Thank you, one more question, I am trying to change the background color on one of the Global Block button, I am using the customize Element CSS

$el { background-color:#000000 !important;}

But is not working. What would be the best way to change a color of a Global Block element?

Thanks again!

Hello @lostimagination,

You need to go to the page where have inserted the Global block element —>Customize —>Element CSS

$el .x-anchor{background-color: #2196f3 !important;}

Please feel free to change the color code as per your design. The purpose of providing custom CSS is to show you how to add CSS code to your site. Writing custom CSS is outside the scope of our theme support. If you need more customization, you need to learn CSS and learn how to use the browser’s element inspector.In case you have no idea about coding you can subscribe to One where customization questions are answered.

Hope it helps.
Thanks

Worked perfectly Thank you!

Hello @lostimagination,

Glad that we were able to help you. Please feel free to open a new thread if you have any more concerns.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.