Add custom content to the events page only

Home Forums Calendar Products Events Calendar PRO Add custom content to the events page only

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1091579
    jamie atherton
    Participant

    I want to add some custom html content to the ‘events’ page above the calendar and have used your “Add HTML before event content” input which is fine but this content is now showing on all single event pages. How do I add content to just the events page (before and after the calendar)?

    #1091830
    Geoff
    Member

    Hi Jamie, and welcome to the forums!

    Great question. You can target a specific calendar view when hooking into that filter. So, for example, here is how to target all calendar views without affecting the single event pages:

    https://gist.github.com/geoffgraham/93f77444204f4373bd6c

    Will this work for you? Please let me know. šŸ™‚

    Cheers,
    Geoff

    #1094465
    jamie atherton
    Participant

    Hi Geoff

    Maybe I’m doing this wrong but I’m getting the screenshot below. What I was doing was pasting your code in to the ‘custom html’ window and then adding my html where you have the ‘Your custom code to display.’

    Hope you can help, Jamie

    screenshot of problem

    #1094795
    Geoff
    Member

    Oh, I’m so sorry. I should have been more clear!

    Please paste that code into your theme’sĀ functions.php file and it should be good from there. šŸ™‚

    Cheers!
    Geoff

    #1094924
    jamie atherton
    Participant

    Hi Geoff

    tried that and the text appeared where it should but 2 other things happened:
    1. The sidebar on the single events page got shunted down to the bottom of the page
    2. I got an error message (something about a T string on the line where I pasted the custom code).

    NB the custom code I pasted is below.

    Jamie

    [title size=”2″ content_align=”left” style_type=”default” sep_color=”#8ad74b” margin_top=”-15px” margin_bottom=”” class=”” id=””]What’s on in & Around Almondsbury[/title][fusion_text]There’s a lot going on in and around Almondsbury and we’ve tried to include as much as we can here. However, with the best will in the world, we can’t put together a full list of events without your help. So, if you’re involved with an event that you’d like us to promote then please tell us more by clicking the long green button below.[/fusion_text][separator style_type=”none” top_margin=”10″ bottom_margin=”20″ sep_color=”” border_size=”” icon=”” icon_circle=”” icon_circle_color=”” width=”” alignment=”center” class=”” id=””][button link=”http://almondsbury.org/events/community/add” color=”custom” size=”large” stretch=”yes” type=”flat” shape=”square” target=”_self” title=”” gradient_colors=”#8ad74b|#8ad74b” gradient_hover_colors=”#000000|#000000″ accent_color=”#ffffff” accent_hover_color=”” bevel_color=”” border_width=”” icon=”fa-external-link” icon_position=”left” icon_divider=”no” modal=”” animation_type=”0″ animation_direction=”left” animation_speed=”1″ animation_offset=”” alignment=”center” class=”” id=””]Submit Your Event Here [/button][separator style_type=”none” top_margin=”10″ bottom_margin=”20″ sep_color=”” border_size=”” icon=”” icon_circle=”” icon_circle_color=”” width=”” alignment=”center” class=”” id=””]

    #1095006
    Geoff
    Member

    Oh interesting! Are you trying to paste shortcodes in there? I believe Those will not work with either in the snippet or the advanced page template options.

    Geoff

    #1101428
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Add custom content to the events page only’ is closed to new replies.