enabling HTML5 changes formatting on home page

Homepage Community Forums Epik Theme Support enabling HTML5 changes formatting on home page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6468
    stinkykong
    Customer

      http://bbmaccounting.com/

      This site was published before Genesis 2.0 and uses the older version of Epik. I converted it over but had the following problem and changed it back to the original. The issue is:

      When I enable HTML5 in functions.php with all CSS switched over to the new rules, all works fine except for the home page where home-feature-2 becomes nested inside home-feature-1. This means the width of home-feature-1 restricts home-feature-2 and together they become taller and booger up the footer below thus becoming quite wonky. (Note my eloquence.)

      I don’t understand how the change in functions.php changes two divs side-by-side to one-inside-the-other.

      Have you run into this before and is there a fix?

      #6480
      Eric
      Customer

        Yes, the Genesis Framework has changed quite a few things, so when you use HTML5 there are other changes that need to be made which do affect the home.php file. Take a look at your home.php file for this as an example –

        genesis_widget_area( 'home-feature-2', array(
        				'before' => '<div class="home-feature-2">',
        			) );

        Add or replace that code with this –

        genesis_widget_area( 'home-feature-2', array(
        				'before' => '<div class="home-feature-2">',
        				'after' => '</div>',
        			) );

        The 'after' => '</div>', part is what you’ll need to add. If there are ever 2 div classes or Id’s then you’ll need to add to divs. If you’re using the old code then the home-feature-2 may be an ID, but it’s all classes now in the new theme. Just make sure and keep it as an ID if thats what’s in your theme…either way it will still work when adding the “after” part.

        If you can, download the new version when it’s available to see the differences.


        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

        #6481
        Eric
        Customer

          I’m helping out by testing the code for bugs, and it looks like its finished to me. So I bet he’ll be releasing it this week.


          I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

          #6555
          stinkykong
          Customer

            Thanks, Eric. That took care of the issue.

            #6559
            Eric
            Customer

              You’re Welcome!


              I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The topic ‘enabling HTML5 changes formatting on home page’ is closed to new replies.