CSS and Styling

Resources

Scripts and Hacks

Custom Values for Buttons

This script gives you a way to define custom values at the account level and use them in to replace the main text (headline) and sub-headline text within a button.

<script>
	/**************************
	* Copyright 2020 GHL Experts, All Rights Reserved
	* Do not share, or distribute this code without author's consent.
	* This copyright notice must remain in place whenever using
	* this code - DO NOT REMOVE
	* Author: Anas Uddin
	* Website: https://ghlexperts.com
	**************************/
	var buttonId = "#button-1139";
	var buttonHeadlineID = "#paragraph-Vs67MMjdD";
	var buttonSubHeadlineID = "#paragraph-6bMeHDtXh";

	var buttonHeadline = document.querySelector(buttonHeadlineID + " div p").innerHTML;
	document.querySelector(buttonId + ' .main-heading-button').innerHTML = buttonHeadline;
    if(document.querySelector(buttonSubHeadlineID + " div p") && document.querySelector(buttonId + ' .sub-heading-button')) {
      var buttonSubHeadline = document.querySelector(buttonSubHeadlineID + " div p").innerHTML
	  document.querySelector(buttonId + ' .sub-heading-button')[0].innerHTML = buttonSubHeadline;
    }
  
</script>

© 2020 GHL Experts. All Rights Reserved. Made with Love from Montreal             Terms & Conditions            Privacy Policy

This site is not a part of the GoHighLevel website or HighLevel, LLC. Additionally, this site is not endorsed by GoHighLevel in any way. GoHighLevel is a trademark of HighLevel, LLC

© 2020 GHL Experts. All Rights Reserved.Made with Love from Montreal             

Terms & Conditions            Privacy Policy

This site is not a part of the GoHighLevel website or HighLevel, LLC. Additionally, this site is not endorsed by GoHighLevel in any way. GoHighLevel is a trademark of HighLevel, LLC