Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1271211

    Friech
    Moderator

    Glad we could help, Cheers!

    #1280516

    Ann
    Participant

    HI again,

    In this thread we have discussed have to add a CTA to the top navigation bar by creating a new file under my child theme; _nav-primary.php – location: \x-child\framework\views\global\.

    The button works great! I was just wondering if there’s a way to have a a different button on just one separate page? Or not have the button visible at all for that page?

    Thanks for your help!

    Ann

    #1280716

    Rad
    Moderator

    You’re welcome!

    #1280737

    Ann
    Participant

    Hi Rad,

    Can I have a different CTA button for one specific page only?

    #1281005

    Lely
    Moderator

    Hello Ann,

    Yes, that is possible. Please share the site URL where you want different CTA button. Then give us a screenshot on how you want it to look on this specific page.

    #1281181

    Ann
    Participant

    Sweet!!

    So on this page: https://moveu.com/free-program/ and I would like the button in the top right corner to look the same but link to this address: https://sso.teachable.com/secure/83488/users/sign_up and say: Get Free Access

    Thanks guys!!!

    Ann

    #1281187

    Paul R
    Moderator

    Hi,

    You can add this under Custom > Edit Global Javascript in the Customizer.

    
    jQuery(document).ready(function($){
        $('.page-id-10951 .cta-btn').attr('href','https://sso.teachable.com/secure/83488/users/sign_up').html('Get Free Access');
    });
    

    Hope that helps.

    #1281190

    Ann
    Participant

    Worked perfectly!!

    Thank you so much 🙂

    #1281199

    Rupok
    Member

    You are welcome!

    Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.

    Thanks for using X.

    Cheers!