• 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

Need Help With Site Not Recognizing Code

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 › Need Help With Site Not Recognizing Code

This topic is: resolved

Tagged: coding help, css, genesis sample theme, header widget area, php

  • This topic has 4 replies, 3 voices, and was last updated 10 years ago by 4himcamper.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 3, 2015 at 8:06 pm #172667
    4himcamper
    Member

    I'm in the process of updating my site and am using the Genesis Sample Theme. The way I want the site to look is . However when I copy that code over for both the style.css and the functions.php to their corresponding files on the main page is the only one that loads properly. The rest of the pages have the Right side Header widget despite what the php code says to the contrary and the smaller Header image. I would like to get this corrected before I put it on the main part of my site. Any help would be appreciated. I am using Chrome for my browser and also double checked it in Firefox to make sure it wasn't a cache/cookie issue.

    http://yeshuart.net/test
    December 3, 2015 at 8:49 pm #172670
    Brad Dalton
    Participant

    What code and where exactly are you pasting it?


    Tutorials for StudioPress Themes.

    December 4, 2015 at 11:34 pm #172809
    4himcamper
    Member

    I'm taking the style.css code with my tweaks for color and header size (1125 x 316) and the functions.php code with the following added php:

    //* Remove the header right widget area
    unregister_sidebar( 'header-right' );
    
    /**********************************
     *
     * Replace Header Site Title with Inline Logo
     * Fix Genesis bug - when using static front page and blog page (admin reading settings) Home page is <p> tag and Blog page is <h1> tag
     * Replace "is_home" with "is_front_page" to correctly display Home page wit <h1> tag and Blog page with <p> tag
     *
     * @author AlphaBlossom / Tony Eppright
     * @link http://www.alphablossom.com
     *
    ************************************/
    add_filter( 'genesis_seo_title', 'abte_header_inline_logo', 10, 3 );
    function abte_header_inline_logo( $title, $inside, $wrap ) {
     $logo = '<img src="' . get_stylesheet_directory_uri() . '/images/logo.png" width="1125" height="316" alt="' . esc_attr( get_bloginfo( 'name' ) ) . '">';
     $inside = sprintf( '<a href="%s" title="%s">%s</a>', trailingslashit( home_url() ), esc_attr( get_bloginfo( 'name' ) ), $logo );
     //* Determine which wrapping tags to use - changed is_home to is_front_page to fix Genesis bug
     $wrap = is_front_page() && 'title' === genesis_get_seo_option( 'home_h1_on' ) ? 'h1' : 'p';
     //* A little fallback, in case an SEO plugin is active - changed is_home to is_front_page to fix Genesis bug
     $wrap = is_front_page() && ! genesis_get_seo_option( 'home_h1_on' ) ? 'h1' : $wrap;
     //* And finally, $wrap in h1 if HTML5 & semantic headings enabled
     $wrap = genesis_html5() && genesis_get_seo_option( 'semantic_headings' ) ? 'h1' : $wrap;
     return sprintf( '<%1$s %2$s>%3$s</%1$s>', $wrap, genesis_attr( 'site-title' ), $inside );
    }

    from their area in the yeshuart.net/test/genesis-sample and pasting them into their corresponding area in yeshuart.net/sherlockian/genesis-sample. I realized my issue with the right side header widget and got that corrected, but the header image is still not showing up as the correct size on anything but the front page on the sherlockian site. I even closed out the browser and restarted my computer as well as tried a different browser.

    December 5, 2015 at 10:39 am #172824
    Victor Font
    Moderator

    The code above applies only to the home page. Change the width of .title-area in style.css to 1200px to change the other pages.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    December 5, 2015 at 12:48 pm #172835
    4himcamper
    Member

    Thank you. That appears to have corrected the issue.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Need Help With Site Not Recognizing Code’ is closed to new 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