Jenni Skinner
asked 10 years ago

Help! I have the DW Page Modern theme installed. My client didn’t like that ‘home’ was an option on the top menu so when I deleted it from the Menus panel – the whole darn section deleted. I didn’t realize that would happen and now when I added it back into the Menus area, the background image isn’t showing up. I replaced the CSS page that I had with the original, and that didn’t help. Any ideas as to what went wrong?

2 Answers
DominicStaff
answered 10 years ago

To resolve this issue, you can do as the following:
– Log in to Dashboard > Page > Edit Home page, then add the following code to the Text frame.

<div class="header">
<div class="hero-unit">
<h1>Simplicity Isn't Simple.</h1>
Design is a word that's come to mean so much that it's also word that has come to mean nothing.
<a class="btn btn-primary btn-large btn-tpl-1" href="http://cmspioneer.com/designwall/">View Our Works</a>
<a class="arrow-down img-circle" href="#">arrow down</a>
</div>
</div>

–  Move through, Appearance > Menu, select the Home page in the left hand: http://prntscr.com/4adyu8
–  Click the arrow on the right of the “Home” item to add the following class: home hidden-title header style-1
See the screenshot: http://prntscr.com/4adzcg
Note: If you still face there issue, you can send me username & password of your site (via private answer) for further checking.
Regards,

 

Jenni Skinner
replied 10 years ago

THANK YOU!!!!!

Jenni Skinner
replied 10 years ago

Is there a way to take ‘home’ off of the navigation, but still have the home section appear at the top of the page? When I try to delete just the Navigation Label, it deletes the whole section all together.

DominicStaff
answered 10 years ago

Hi Jenni,
To hide a page from the menu and leave the page visible when scrolling on the DW Page, please follow my instruction here:
Step1: open the framework.php file in the folder path “wp-content\themes\dw-page-modern\inc”
Step2: Find the line from 307 to 327 then replace the following code:

  foreach ($menu as $menu_item) {
            $active = $i == 0 ? 'class="active"' : '';
            $menu_id = sanitize_title($menu_item->title);
?>
            <li <?php echo $active ?>>
                <a href="#<?php echo $menu_id ?>">
            <?php echo $menu_item->title  ?>
                </a>
            </li>
<?php
            $i++;
        }
?>               
        </ul>
    </div>
<?php           
        }
    }
}

With the new code:

  foreach ($menu as $menu_item) {
            $active = $i == 0 ? 'class="active"' : '';
            $menu_id = sanitize_title($menu_item->title);

            if ($menu_item->menu_item_parent == 0) :
?>
            <li <?php echo $active ?>>
                <a href="#<?php echo $menu_id ?>">
            <?php echo $menu_item->title  ?>
                </a>
            </li>
<?php
            endif;
            $i++;
        }
?>               
        </ul>
    </div>
<?php           
        }
    }
}

See the screenshot:

Step3: Log in to Dashboard > Appearance > Menu then move the menu that you want to hide.
Example:
 

  • Portfolio
        – Team

 

See the screenshot:

Hope this helps!

Jenni Skinner
replied 10 years ago

^ I used your code and it works on everything except the HOME nav item… which is the one I need to hide in the nav bar. It seems since it’s the first item, I can’t hide it. Any ideas?

Dominic Staff
replied 10 years ago

You can add the following code to the Header Code (Dashboard > Customize > Custom Code)

Regards,

Powered by DW Question & Answer Pro