• Resolved RChiiton

    (@rchiiton)


    I have created a custom theme and used it multiple times as a single landing page using home.php as the landing page. Works fine no issues.

    Now I’m trying to add a second page with it’s own page template and something is not working correctly. I’ve created another page template and called it sedation.php. I’ve edited the template name in the sedation.php file. The page shows up in my templates in the dropdown list of the dashboard – all good.

    If the page is still in the “draft” mode and you view it and you can see it perfectly but once I “publish” the page then I get a page error.

    I’m guessing I am missing some code relevant to pages somewhere in my theme but I’ve researched a looked a can not figure out what it is. Trying to make this site live and can not do it until I get these pages viewable.

    Thanks for the help.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter RChiiton

    (@rchiiton)

    This is what I put in the .htaccess file, copied it from a site that is functioning properly

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Thread Starter RChiiton

    (@rchiiton)

    I’ve used this custom theme before I don’t usually have additional pages. But I just tested another site using it and I can see the page.

    I’ve tried switching themes and I still do not see the pages.

    The only code that I think I changed other than some css is I added

    this to the function.php file

    add_action(‘init’, ‘register_custom_menu’);

    function register_custom_menu() {
    register_nav_menu(‘custom_menu’, __(‘Custom Menu’));
    }

    and this to the header.php file

    <?php wp_nav_menu(array(‘menu’ => ‘custom_menu’)); ?>

    But it seems like it is outside the themes otherwise I would think the page would work if i changed themes.

    Is that now the .htaccess file for https://whistlerworks.com – your root domain?

    Thread Starter RChiiton

    (@rchiiton)

    Got it…. had to change the file path in the .htaccess file.

    Appreciate all your help. My brain was about to explode.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Custom Page Help’ is closed to new replies.