• Resolved rimsha7

    (@rimsha7)


    Hello,
    I’m using Sela on my website and I want to make some changes to the primary menu. For example, I have a page for ‘About Me’ and a separate page for ‘Contact’. Is it possible to add the Contact Page as a drop-down option under ‘About Me’ in the menu? How do I do it? Also, if I add a category such as Travel to the Menu, how do I make sure that all the blog posts to do with this category appear when someone clicks?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter rimsha7

    (@rimsha7)

    Also, if I add a category (such as Food) to the primary menu, how do I make sure that the sub-category (such as Recipes) shows up in the drop-down menu options under ‘Food’?

    My website is https://www.therimskyproject.com

    I have a page for ‘About Me’ and a separate page for ‘Contact’. Is it possible to add the Contact Page as a drop-down option under ‘About Me’ in the menu

    Go to Admin > Menu and drag “Contact” Menu to right so that it creates a sub-item of “About Me”. Come back to the site and refresh the page. Now you have to create some CSS rules to make it look like a real dropdown menu.

    If I add a category such as Travel to the Menu, how do I make sure that all the blog posts to do with this category appear when someone clicks?

    1. Create a template say list-travel.php in your child theme’s root folder. Name the template for example “List of Travels”.
    2. Add a new page from admin say “travels” and assign it to template “List of Travels”
    3. Write code in list-travel.php to load posts under your category.
    4. Go to Admin > Menu and drag the page you just created (travels) into menu bar.
    5. Go back to site and refresh page to see your menu. Click on it to load your travel page with posts under it.

    Let me know if this helps.

    Hi @rimsha7!

    You can actually do everything you need right from Appearance > Menus in your dashboard (no need of special templates or CSS).

    On Appearance > Menus, you’ll see different sections like Pages, Posts, Categories, etc.

    Use those sections to select the items you want to add to your menu, and click Add to menu.

    Next, over on the right, you can drag the items around to position them in the item. To make a submenu, drag the item in to the right a bit, so it is indented.

    For example, after adding the Food and Recipes categories to your menu, you can drag Recipies so it sits just under Food. Then drag it a bit to the right to turn it into a submenu.

    WordPress generates category pages automatically, so you don’t need to build your own template, and the theme already has the CSS needed for a submenu ??

    Thread Starter rimsha7

    (@rimsha7)

    Hello! Thank you so much for your responses. It’s been a HUGE help ??

    You’re welcome!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add sub-pages to the theme’ is closed to new replies.