• I just finished a WordPress blog: https://www.verbalremedies.com/blog. I want to make the blog live as the homepage: https://www.verbalremedies.com and all the pages like this: https://www.verbalremedies.com/store, etc. even though it’s housed in the blog folder. I followed the structure of a different blog that a colleague set up for me: https://www.b-animalwise.com/wordpress (it isn’t live yet): used separate folder, used custom structure permalinks “/%postname%”, etc. I know this will work b/c the one he set up works like that:

    In the b-animalwise site, when I change the index_1.php page on the root folder to index.php as he directed it works fine: the blog becomes the homepage and all the links work like: https://www.b-animalwise.com/about, etc. (note no extra folder in link even though the permalinks in WP Admin adds the “wordpress” folder”. When I do this same thing with verbalremedies, it won’t work. How did he do that?

    I tried changing my header links to his structure but whatever I did, didn’t work.

    Below is the code for both index.php pages and the navigation for both header.php pages.

    What am I missing? You’re help is soooo appreciated!

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    if (preg_match(“/b-animalwise.com/i”, $_SERVER[‘HTTP_HOST’])) {
    require(‘./wordpress/wp-blog-header.php’);
    }
    ?>

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    if (preg_match(“/verbalremedies.com/i”, $_SERVER[‘HTTP_HOST’])) {
    require(‘./blog/wp-blog-header.php’);
    }
    ?>

    Here’s mine:
    bloghome
    about/bio
    store/ebooks
    links
    contact
    peace and love for all.com

    Here’s his:

    <li <?php if (is_page(‘Welcome!’)) {echo ‘class=”currentpage”‘;}; ?>>HOME
    <li <?php if (is_page(‘About Barrie’)) {echo ‘class=”currentpage”‘;}; ?>><a href=”/about-barrie/” title=”About

    Barrie”>ABOUT BARRIE
    <li <?php if (is_page(‘Barrie\’s Blog’)) {echo ‘class=”currentpage”‘;}; ?>><a href=”/barries-blog/” title=”Barrie’s

    Blog”>BARRIE’S BLOG
    <li <?php if (is_page(‘Consultations’)) {echo ‘class=”currentpage”‘;}; ?>><a href=”/consultations/”

    title=”Consultations”>CONSULTATIONS
    <li <?php if (is_page(‘FAQ’)) {echo ‘class=”currentpage”‘;}; ?>>FAQ
    <li <?php if (is_page(‘Contact’)) {echo ‘class=”currentpage”‘;}; ?>><a href=”/contact/”

    title=”Contact”>CONTACT

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How do you get someone to help?’ is closed to new replies.