Support » Plugin: The Events Calendar » Button Shortcode on main Events Page

  • Resolved Sammy2

    (@sammy2)


    Hi – I have installed a button using shortcode on a “single event” post. It works fine, however, in List View on the main Event page – it only shows the code – not the button. Any suggestions on how to fix it, please?

    Thanks,

Viewing 6 replies - 1 through 6 (of 6 total)
  • Look at the source code where the button is working to see how the shortcode is rendered in html.

    Copy that html code into a text editor (Notepad on PC, TextEdit on MAC).

    Then go back to your event listing(s), make sure you are pasting the html code in “Text” view rather than “Visual” view.

    Remember to Save your event listing. Check to see if this works with the way your theme renders things.

    Hi – @rlhinirv57

    Are you with the Events Calendar Plugin team? I am not sure how you would post this to the “Main Events” page as it pulls in all the event posts to it. I did try copying and pasting the code into text view on the event “post” and it did not work.

    thanks for replying.

    Hi Sammy2,

    Sorry that didn’t work out.

    No, I am not with the EC plugin team. I have been using the plugin for numerous client sites. If you are copying html into a single post, you will need to make sure you are on the “Text” tab – not the “Visual” tab – in the editor where you add information about an event. (If you cannot switch to the Text tab – that seems to be part of current issues with the plugin.)

    If you want to add a button that is included in all the posts, you need to do that in the Events plugin settings. Path is: ‘Events > Settings > Display (tab on the Settings page)’ and add some button shortcode there. You can either add a button above or below the posts. Scroll down to the “Advanced Template Settings” section of the plugin’s “Display” to see the text field where you can add this type of info.

    NOTE, the function to add buttons needs to exist in your theme; if it does not already exist, you will need to create it: a good tutorial is online at: https://speckyboy.com/getting-started-with-wordpress-shortcodes-examples/ (I am not affiliated with this site)

    If that is too complicated, you might have success installing a plugin specifically to enable buttons anywhere you want them.

    Here are two screenshots; one shows the shortcode added in the “Advanced Template Settings” section, and the other shows how it looks on the Events page.

    View post on imgur.com

    View post on imgur.com

    Hi – I really appreciate your help. I only needed this button on 1 post – so the Events settings won’t apply. The theme does have it’s own button shortcode – so, not sure what’s going on – have tried pasting shortcode directly into the text editor too. Anyway, thanks for all your suggestions. For now, the button is gone and just linked some text.

    Plugin Author Barry

    (@barryhughes-1)

    Glad you figured out a working solution 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Button Shortcode on main Events Page’ is closed to new replies.