Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #730283
    #730994

    Hey thatcommsguy,

    Thank you for using Enfold.

    Add the is_singular conditional function.

    // https://codex.wordpress.org/Function_Reference/is_singular

    if( is_page(array('academy','learning-with-us')) || is_singular('tribe_events'))
    

    Best regards,
    Ismael

    #731477

    Many thanks Ismael. That worked perfectly.

    I have one more related question, if you don’t mind: is there an is_ function that I can use to do the same thing on the calendar page from the Event Calendar (https://brightgreenlearning.com/courses or https://brightgreenlearning.com/course)?

    It doesn’t work if I simply add them to the is_page array, as I guess they’re not actually pages.

    Thanks…
    Eoghan

    #732903

    Hi,

    Try adding this code:

    is_post_type_archive('tribe_events')

    It should look like this:

    if( is_page(array('academy','learning-with-us')) || is_singular('tribe_events') || is_post_type_archive('tribe_events'))

    Let us know if this helps. :)

    Best regards,
    Nikko

    #733057

    That’s great Nikko. Many thanks!

    #733360

    Hey!

    Glad we could help :)

    Cheers!
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Alternative header logo also on custom posts?’ is closed to new replies.