Forums

hi twice on home page (6 posts)

  1. shawnaraxi
    Member
    Posted 1 year ago #

    I am just setting up a new blog and noticed that on the home page the H! tag is there twice. First it is there wrapping the title of the blog then it is wrapping the permalink which is titled home.

    I found that when a static page is selected to be frontpage, the result is that both the page title and the blog description is generated as H1.

    How can I fix this so there is only the first H1 on the home page?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    By editing your theme's template files.

  3. shawnaraxi
    Member
    Posted 1 year ago #

    hi, i do realise that but am unfamiliar with php. can someone help me do this please.

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    you could edit page.php to edit the h1 to h2, be aware that may alter the appearance as these elements are defined in style.css, so it may take some hunting to fix these styles

  5. Mark / t31os
    Moderator
    Posted 1 year ago #

    Your theme will contain several files that each deal with displaying different types of pages.

    First determine which file is handling display for the home page, see here.
    http://codex.wordpress.org/Template_Hierarchy

    Once you know which file to edit open the file up, using FTP if you're familiar or alternatively use the theme editor in the WordPress admin, you'll see the Editor link under the Appearance menu.

    Make the necessary changes to the heading elements, then save changes.

    You can find more information on editting files here.
    http://codex.wordpress.org/Editing_Files

  6. shawnaraxi
    Member
    Posted 1 year ago #

    thanks ver voodoo but i really do not feel confident in php.

    i did find something that might help from here: http://wordpress.org/support/topic/double-h1-when-static-page-is-frontpage

    "...After some rough testing I can conclude that if line 373 in /library/extensions/header-extensions.php is changed from
    if (is_home() || is_front_page()) {
    to
    `if (is_home()) {'
    since is_front_page returns TRUE if there is a page displayed as front page and is_home does not...
    "

    the thereme is here http://code.google.com/p/wp-constructor/

    would anyone be willinng to have a look at it. sorry, if it was in another language i would feel comfortable but just starting php here.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags