• QuarryHill

    (@quarryhill)


    I wanted to add pages to the 2017 theme, and I was successful creating them, but they don’t appear on the website even though I’ve published them. I read in the info to add this code:
    add_filter( ‘twentyseventeen_front_page_sections’, ‘prefix_custom_front_page_sections’ );

    function prefix_custom_front_page_sections( $num_sections )
    {
    return 6;
    } the the theme php

    which I did, but the pages are still hiding somewhere.

    The website is jeffersonvillequarryinc.com. Can anyone help me figure out how to get my pages to appear? Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael

    (@alchymyth)

    where do you expect to see the pages?
    – in the menu?
    – in the front page sections?

    for the menu, you need to create a custom menu and add the pages; https://codex.wordpress.org/Appearance_Menus_Screen

    for the front page sections, you need to create a static front page https://codex.wordpress.org/Creating_a_Static_Front_Page, and then use ‘customizer’ – ‘theme options’ to set the pages for the front page sections.

    CrouchingBruin

    (@crouchingbruin)

    @quarryhill, you should not need to make any changes to the PHP modules. In fact, making any changes directly to the theme files is discouraged, because any changes will be wiped out the next time you update the theme (which you should, in order to keep up with security patches and bug fixes). If you really need to make changes to theme files, then you would do so by creating a child theme. But in this case, you don’t need to do that, either.

    As @alchymyth said, the pages, if you’ve saved them correctly, probably exist, you just need a way of navigating to them. But first, let’s make sure that the pages are out there.

    If you go to Pages → All Pages, you should see a list of the pages which you’ve created. Go ahead and Edit one of the pages. When the page opens in the editor, there should be a link underneath the page title called Permalink. Click on that link and make sure your new page appears.

    Assuming that your new page exists, now you want to add the link to your menu so that your site visitors know how to get to it. Follow the steps listed in this tutorial for creating a custom menu. Once the menu has been created, however, you need to set the location of your new menu, so after you’ve created your menu, click the Manage Locations tab. For the Top Menu, select the menu that you just created from the drop down list, then save it.

    Your site will hopefully now have a menu with your pages on it.

    Saurabh Saneja

    (@saurabhsaneja)

    Did you add them to a menu..i am guessing you were trying to add to primary menu but you instead added to footer or some other menu seventeen theme has!!

    Hope it helps 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Pages/My pages don’t appear after creating them’ is closed to new replies.