Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Diferent Sidebar for Child of

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36600
    Rai
    Member

    Hi There,

    I need to set a different sidebar for diferente pages and I will like to set and special one for all the childs of one page. Can you help me with the code to do it?.

    Here is my code:
    *In second line I need to replace the “is_child_of for something that work.


    if ( is_child_of('page-contacto.php') ){ ?>
    funciona




    ?>

    Blessings.
    Rai Singh.

    #96539
    Rai
    Member

    Any suggestions will be good!. Otherwise I will need to do page templates.

    #96540
    Rai
    Member

    Mmm, I all ready do page templates. I donĀ“t find the solution to do it in that way. But any way I save two birds with this, instead of have two pages for it now I have just one template.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.