Change h2 tag in mini calendar widget

Home Forums Calendar Products Events Calendar PRO Change h2 tag in mini calendar widget

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #969695
    Darren
    Participant

    Hi,

    I’ve added the widget to this page – http://www.thefarmernetwork.co.uk/ using the Event mini widget, I’d like to change the h2 tag so that the title size is in line with other elements on the page.

    Which template file do I need to edit?

    Thanks,
    Darren

    #969767
    Geoff
    Member

    Hi Darren and welcome to the forums!

    First off, nice site–it’s coming out great. šŸ™‚

    There are a couple of ways to go about changing the H2 headings in the widget. One way (as you noted) is to modify the template:

    • Make a copy of theĀ single-event.php file. It’s located in the PRO plugin directory under /views/pro/widgets/modules.
    • Make a new folder in your theme directory calledĀ tribe-events
    • Make another folder in that one calledĀ pro
    • Make anotherĀ folder in that last one calledĀ widgets
    • Make one last folder in that one calledĀ modules
    • Place the copied file in that last folder

    Now that the template is in your theme, it can be modified to suit you needs. In this case, change the H2 tags to something else that matches the rest of your theme.

    The other way to do it is directly with CSS. For example. you could add something like this to your theme’sĀ style.css file to change the size:

    .tribe-mini-calendar-event h2 {
    font-size: 25px;
    }

    I hope this helps!

    Geoff

    #976087
    Geoff
    Member

    Hey Darren! This thread has been quiet for more than a couple of weeks, so I’m going to go ahead and close it. Please feel free to open a new thread if you still have any other questions here at all and we’d be happy to help. šŸ™‚

    Cheers!
    Geoff

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Change h2 tag in mini calendar widget’ is closed to new replies.