• Resolved Dan14

    (@dan14)


    I have read many posts and understand it is the themes’ fault. I understand I need to add span classes for:

    entry title
    hcard
    updated
    author

    What is the code and where exactly is placed in Twentyfourteen? I have seen many explenations for other themes but not twentyfourteen. Is it content.php? Template tags? Please help me.

Viewing 15 replies - 1 through 15 (of 28 total)
  • Do not edit the Twenty Fourteen theme. It is the current default WordPress theme and having access to an original, unedited, copy of the theme is vital in many situations. First create a child theme for your changes.

    Thread Starter Dan14

    (@dan14)

    I have a child theme running Esmi

    Thread Starter Dan14

    (@dan14)

    I have made many edits to functions.php, style.css etc. I am just stuck with this Microformats. How do I wrap it and what do I need to do?

    You will probably need to create custom versions of many of the parent theme’s template files in your child theme. Such as content.php etc.

    Thread Starter Dan14

    (@dan14)

    Ok, what exactly do I do? I have seen many suggestions but I am completely lost

    Thread Starter Dan14

    (@dan14)

    For example, for entry title the suggested code is:

    <h1 class=”entry-title”><?php the_title(); ?></h1>

    Where do I place it or edit? It doesn’t exist in single.php in Twentyfourteen

    Thread Starter Dan14

    (@dan14)

    What do I need to edit? I think it is in content.php but not sure what to do

    Try looking in your child’s copy of the content.php template file.

    Thread Starter Dan14

    (@dan14)

    If you can tell me where to find the codes I need to edit I will give it a shot myself. It’s been an issue since Google decided to do it since the beginning of the year.

    Thread Starter Dan14

    (@dan14)

    I will copy-paste what I have, one minute Esmi

    Please don’t. Just try looking in your child’s copy of the content.php template file.

    Thread Starter Dan14

    (@dan14)

    Ok, just a small part then:

    if ( is_single() ) : the_title( ‘<h1 class=”entry-title”>’, ‘</h1>’ );
    else :
    the_title( ‘<h1 class=”entry-title”>‘, ‘</h1>’ );
    endif;
    ?>
    Do I need to change the h1 class=”entry-title”>’, ‘</h1>’ to <h1 class=”entry-title”><?php the_title(); ?></h1> ? I am completely lost.

    The first code you posted above is completely wrong. Have you edited the parent theme?

    Thread Starter Dan14

    (@dan14)

    No. It didn’t paste it right, I removed most of the spacing, here is the correct code:

    <?php
    endif;
    
    if ( is_single() ) : the_title( '<h1 class="entry-title">', '</h1>' ); else :
    the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '
    " rel="bookmark">', '</h1>' );
    endif;
    ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    What are you trying to do?

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘TwentyFourteen hAtom Erros’ is closed to new replies.