• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Adding the class "entry-title" to H2 tags

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adding the class "entry-title" to H2 tags

This topic is: not resolved

Tagged: css, html5, XHTML

  • This topic has 14 replies, 2 voices, and was last updated 10 years, 5 months ago by Christoph.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • July 1, 2015 at 2:24 pm #158080
    abfchgirlx
    Member

    For some reason my version of Genesis does not have an H2 tag so I can style it. Does anyone know how I can add the class to the H2 tag?

    Thanks!

    July 1, 2015 at 3:00 pm #158085
    Christoph
    Member

    Hi,

    could you please clarify if your style.css does not have a selector with the name H2 or if you want to target the H2 in
    .entry-title (for this you can usually use h2.entry-title { as selector to style the different properties in the style.css)?


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    July 1, 2015 at 3:51 pm #158086
    abfchgirlx
    Member

    Hi There,

    Here's my HTML, or PHP, whatever you want to call it via firebug (website is still being built so no one can view it);

    <div class="content-sidebar-wrap">
    <main class="content" itemtype="http://schema.org/Blog" itemscope="itemscope" itemprop="mainContentOfPage" role="main">
    <div class="home-top widget-area">
    <section id="featured-post-3" class="widget featuredpost">
    <div class="widget-wrap">
    <div class="post-6235 post type-post status-publish format-standard has-post-thumbnail category-business-tips-tricks category-lifestyle tag-behind-the-scenes entry gfwa-1 gfwa-odd">
    <h2>
    <p class="byline post-info">

    Here's the code on another web server, exact same theme and genesis... and it pulls the H2 entry-title tag along with a header-class that also seems to be missing from the website with the issue (that's hosted on another server).

    <div class="content-sidebar-wrap">
    <main class="content" itemtype="http://schema.org/Blog" itemscope="itemscope" itemprop="mainContentOfPage" role="main">
    <div class="home-top widget-area">
    <section id="featured-post-3" class="widget featured-content featuredpost">
    <div class="widget-wrap">
    <article class="post-6235 post type-post status-publish format-standard has-post-thumbnail category-business-tips-tricks category-lifestyle tag-behind-the-scenes entry gfwa-1 gfwa-odd">
    <header class="entry-header">
    <h2 class="entry-title">
    <a title="A day in the life of a Work At Home Graphic Designer" href="http://www.homeinprocess.com/2015/06/a-day-in-the-life-of-a-work-at-home-graphic-designer/">A day in the life of a Work At Home Graphic Designer</a>
    </h2>
    <p class="entry-meta">
    <a class="alignleft" title="A day in the life of a Work At Home Graphic Designer" href="http://www.homeinprocess.com/2015/06/a-day-in-the-life-of-a-work-at-home-graphic-designer/">
    <p>

    Here's the CSS of the website where it works hosted on that second server;

    .content .entry-header .entry-meta {
        border-bottom: 1px dotted #ddd;
        border-top: 1px dotted #ddd;
        clear: both;
        color: #777;
        font-size: 12px;
        font-style: italic;
        line-height: 1;
        overflow: hidden;
        padding: 10px;
        width: 100%;
    }

    Here's the CSS of the one where the code is broken somewhere on the new server (I'm starting to think bluehost is at fault for the reason why the css classes are not pulling);

    .content .entry-header .entry-meta {
    	border-top: 1px dotted #DDD;
    	border-bottom: 1px dotted #DDD;
    	clear: both;
    	color: #777;
    	font-size: 12px;
    	font-style: italic;
    	line-height: 1;
    	overflow: hidden;
    	padding:10px;
    	width: 100%;
    }

    I deleted and reinstalled Genesis and my Tasteful theme (from restored 316) and it still is not appearing correctly on the new server, but works just fine on the old one.

    Thanks for your help!

    July 1, 2015 at 6:05 pm #158092
    Christoph
    Member

    That looks like something isn't right with the featured posts widget.
    Maybe compare the settings of those widgets.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    July 1, 2015 at 9:58 pm #158113
    abfchgirlx
    Member

    Already did that.

    July 1, 2015 at 10:20 pm #158115
    Christoph
    Member

    Ok, as long as you are sure that all the settings are correct.

    Something is preventing the HTML markup from building the way it should.

    You could try one of the featured posts widget alternatives and see if that fixes it.

    Genesis Featured Widget Amplified


    https://wordpress.org/plugins/genesis-featured-content-widget/


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    July 2, 2015 at 4:44 am #158132
    abfchgirlx
    Member

    Thanks, but I'm using the amplified widget originally and nothing has changed, everything is exactly the same from the old website to the new. What's missing from the code is;

    <header class="entry-header"> and the bylines aren't properly being labeled either.

    They should be; <p class="entry-meta"> but are showing <p class="byline post-info"> and <p class="post-meta">

    I switched to the second widget you suggested, the featured content widget. It fixes the H2 class tag. But, I'm still having issues with the following tag dissapearing in my markups;

    <header class="entry-header"> is not in the core at all;
    and <p class="byline post-info"> and <p class="post-meta"> should read as; <p class="entry-meta">

    For my CSS to work correctly, I need that header class added back into the position it should be and the P classes properly renamed. I haven't done anything to delete the header class or rename the P classes... it should have been there you would think since the core is suppose to be the same but somewhere somehow on the new server it is not.

    July 2, 2015 at 4:51 am #158133
    abfchgirlx
    Member

    Just found a huge difference is between XHTML and HTML5.

    http://www.genesisframework.com/markup.php

    Somehow my new website is reading the code in XHTML, but the HTML5 will display my css classes correctly.

    Now... just have to find out how to get my new website to read in HTML5 vs. XHTML.

    July 2, 2015 at 9:10 am #158160
    Christoph
    Member

    That is very strange.
    Did you copy the functions.php from your old site to the new?

    This is the code snippet from Studiopress to enable HTML5 markup:

    http://my.studiopress.com/snippets/html5/


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    July 2, 2015 at 9:13 am #158161
    abfchgirlx
    Member

    Thanks, I used that code snippet and nothing changed. I'm talking to bluehost trying to figure out how to enable it on the back end.

    Yes, I followed bluehosts instructions how to migrate/clone a website to another website... it went smooth. Plus I uploaded the theme about 5 times just to double check that everything was copied correctly and it's the same issue. Nothing can break it from outputting XHTML. I suppose that's why enabling the HTML5 markup isn't working because somehow on the back end of the server side HTML5 is turned off (that's my guess).

    July 2, 2015 at 9:19 am #158163
    Christoph
    Member

    I'm sorry this is turning into such an ordeal.

    You could open a support ticket with restored316, maybe they have encountered this in the past:

    http://restored316designs.com/submit-a-support-ticket/


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    July 2, 2015 at 9:26 am #158165
    abfchgirlx
    Member

    Yup, thanks. I already fired off a message to them asking if they can provide the stylized CSS for websites that only spit out XHTML. 🙂

    July 2, 2015 at 12:57 pm #158195
    abfchgirlx
    Member

    Alright so Bluehost rejected me saying it's a coding issue.

    And I checked my child theme, and the child theme is set up to code HTML5.

    here's the code they put in my functions;

    //* Add HTML5 markup structure
    add_theme_support( 'html5' );

    I don't get this.

    July 2, 2015 at 1:04 pm #158196
    abfchgirlx
    Member

    Now I'm getting convinced that the coding is somewhere along the Genesis side that's causing the issue.

    Check out this page I found;

    http://my.studiopress.com/docs/genesis-markup-comparison/

    Those tags under "entry" are only pulling as XHTML on my website, and not HTML5. I'm using Genesis version 2.1.2. Therefore making me thinking that bluehost is correct, it's a coding issue. And also that my childtheme with Restored 316 is also not at fault since she's coding it to match Genesis 2.0+ (not older versions) and she's also coding it to match HTML5. And according to that link... Genesis is the one that's coding these tags that aren't showing up as HTML5.

    Is there anyway we can get a ticket issued with the Genesis developers? Or maybe they accidently uploaded the wrong file (old file) into the new Genesis version 2.1.2 that's causing the error?

    July 2, 2015 at 3:39 pm #158225
    Christoph
    Member

    Or maybe they accidently uploaded the wrong file (old file) into the new Genesis version 2.1.2 that’s causing the error?

    I highly doubt it.

    You could try disabling plugins and see if that fixes the issue.

    And you can open a ticket with Studiopress here:
    http://my.studiopress.com/help/


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble