Okay
  Public Ticket #1705271
Customize 'Visit Website' button
Closed

Comments

  •  1
    Bianca started the conversation

    Hi,

    Is it possible to edit the 'Visit Website' button to match the link. Not all my calendar links will go to another website but rather to a program or to a form.

    Thanks.

  •  94
    Valentin replied

    Good Morning Bianca,

    Can you please explain the matching link part? For what link are we talking about?

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  •  1
    Bianca replied

    Hi Valentin,

    The buttons within the event description will be linked to external and internal websites/pages, and will not always have the same button text. Some links will lead to external websites ('visit website' text), some to external programmes ('view program' text) and some will be linked internally to a form ('fill out form' text). 

    I just need to be able to give each event button a different text. 

  •  94
    Valentin replied

    So basically you need the button to have different text in different situations. Unfortunately there is no build in option for that, but I will talk with the developer to see if there is a work around and let you know.

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  •  1
    Bianca replied

    Thank you so much. That would be really great.

  •  894
    Zhivko replied

    You could just write the button html in the introduction field:


    <a target="_BLANK" class="stec-layout-single-external-link stec-layout-single-button-style stec-layout-event-inner-intro-external-link stec-layout-event-inner-button-style stec-layout-event-btn-fontandcolor stec-display-block" href="http://example.com">Custom button text</a>
    

    Also in St.Event Calendar -> Fonts & Colors -> Custom Style add:

    body a.stec-display-block { 
        display: block !important;
    }



    Stachethemes Developer

  •  1
    Bianca replied

    That works really well. Thank you!!

  • Emma replied

    Hi,
    I've used this method (Zhivko's code) for the same purpose as Bianca. But after the recent update, the look of the button changed. I haven't done anything to the code provided. As shown in the picture - the button on top is how the button now looks when i insert the html in the description - the bottom picture is how the button looks if i use the build in feature (which i can't use, since the title for the button changes). Any ideas how to fix the looks of the button?
    - Emma

  •  894
    Zhivko replied

    Use this button instead:

    <a target="_BLANK" class="stec-style-button stec-display-block" href="http://example.com">Custom button text</a>
    

    Stachethemes Developer

  • Emma replied

    Thank you so much - that worked!