WordPress.org

Ready to get started?Download WordPress

Forums

Different Header for Front Page (2 posts)

  1. JeffersonJ
    Member
    Posted 3 years ago #

    See the following link:

    http://www.roycmartin.com

    For the front page only, I want to get rid of the small logo in the top-left. I might also want to center the menu.

    I've tried for a few days to track down how to do this. I've found where the #top-left is in the header.php, but cannot figure out how to edit it for only the front page (maybe an if/then statement?). I've got coding experience but not with PHP. Alternatively, I've thought of making a header_main.php with different code, but have not tracked down where in the main page code to direct it to the alternative header.

    Any advice would be much appreciated - let me know if there's anything I can post that would help.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Start by adding the body_class() function to the <body> tag. That will allow you apply CSS on a per-page basis.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags