• Resolved karsten007

    (@karsten007)


    Hi bdbrown,

    this is my current child-menu with a template called child-menu-neu.php

    http://goo.gl/2KweYv

    Also the grandchild pages have the template child-menu-neu.php

    For the next step I would like to have a different template for the grandchild pages.

    Could you please help me and tell me which are the next steps I have to do in order to achieve this.

    Thank you very much
    Regards,

    Karsten

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi there. Let me pull together my notes from a previous post and I’ll get back to you.

    Hi Karsten. I’m trying to understand your configuration. If you could answer these questions for me it would be helpful:
    1. Where are the “child-menu-neu.php” and “child-menu-market-watch.php” files located? In your child theme folder?
    2. Did you change the “Template Name” in either of these files?
    3. When you drop down the Page Template list, are there any other entries besides “Default Template” and “Child Menu”?
    Thank you.

    Hi Karsten. Good news; I got it to work. Late here so I’ll put some notes together in the morning and post an update.

    Thread Starter karsten007

    (@karsten007)

    Hi bdbrown,

    thank you very much for great support and help.

    Here are my answers to your questions:

    1. “child-menu-neu.php” and “child-menu-market-watch.php” files are located in my child theme folder in a sub folder called “page-templates”. In this sub folder is also the “child-menu.php” located.

    2. No, no changes in the “Template Names”.

    3. Yes, there are two other page templates which I created but which I don’t use in this case.

    You said you got it to work…super! I am looking forward to hear which changes you made in order to get it working.

    Thanks and regards,
    Karsten

    In addition to what you have set up, make these changes:
    1. In your “neu” and “market watch” php files, change the Template Name to something related to the file name. This is what shows up in the Page editing Template dropdown list.
    2. After making the above changes you may have to reselect the desired template in each page.
    3. Add sidebar.php to your child theme folder and change this line:

    <?php if( is_page_template(‘page-templates/child-menu.php’) ): ?>

    to this:

    <?php if( is_page_template(‘page-templates/child-menu.php’)||is_page_template(‘page-templates/child-menu-neu.php’)||is_page_template(‘page-templates/child-menu-market-watch.php’) ): ?>

    (dang code block ticks didn’t work again…;-)

    Let me know how that works.

    Thread Starter karsten007

    (@karsten007)

    Hi bdbrown,

    yes, this works now perfect.

    Thank you very much for your great help. Maximum respect!

    But now…I have a new question. But I think it is easy for you to answer. Please take a look here:
    http://goo.gl/ZIhw2c

    On some pages I don’t want to show the date which is positioned before my name. I know I could delete the date from my page template:
    <?php the_time(get_option('date_format')); ?>

    The second posibility should be using CSS with the attribute {display:none;}

    But I couldn’ figure out which classes I have to address in my sytle-sheet in order to hide the date before my name. Could you please advise me quickly?

    Thank you and have a nice weekend!

    Karsten

    Hi karsten. Glad your menus are working. I’d be glad to look at your other question but I’d ask that you please start another topic. That question isn’t really related to this thread. If we’re finished with the sidebar menus then please mark this topic as resolved. Thank you.

    Thread Starter karsten007

    (@karsten007)

    Allright, thank you

    I have marked this topic as resolved

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Child-menu in Sidebar’ is closed to new replies.