Okay
  Public Ticket #1937790
Salient Options
Closed

Comments

  • ggmorales started the conversation

    Hi!

    We have two directories with different content:

    https://miwebenpruebas.com/tenerife

    https://miwebenpruebas.com/laspalmas

    I would like to use a different logo for all content of each directory "tenerife" and "laspalmas".

    I´ve seen in other comments that this can be donde using a php code with conditional, but it regards to the specif page Id. 


    <?php
    if(is_page('About')) {  echo '';
    } else if( is_page('Contact') ){  echo '';
    } ?>

    Since we have many pages under each directory, is there a way so the condition "if" relates to all content of each url (directory), intead of using "If(is_page(´example´)?

    Thanks a lot!!

    Greg.

  •  8,999
    Tahir replied

    Hey Again,

    There is a is_term() function as well that you can use : https://developer.wordpress.org/reference/functions/is_term/ .

    Best


    ThemeNectar Support Team 

  • ggmorales replied

    Hi Tahir,

    Thanks for the prompt reply, we have seen this function has been deprecated, it is recommended to use term_exists() instead. We will work on this one to see if we can solve the issue.

    Thanks again,

    Greg.