• 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

ccstone

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 17, 2015 at 1:45 pm in reply to: Would like to ONLY show titles for search results page #141132
    ccstone
    Participant

    I tried using the HTML5 version as stated above, but I'm just getting the codes at the top of the search result page and the rest of the page is blank.

    I'm using Lifestyle Pro theme and I only want the Titles in search results.

    Can anyone help?

    February 16, 2015 at 9:13 pm in reply to: Adsense Ad After the First Post Only #141066
    ccstone
    Participant

    I tried a different method using "Genesis Simple Hooks", but the same results happened. Ads appear after every single post instead of just after the first one.

    I put this code in genesis_after_entry.

    <?php
    global $loop_counter; 
    if (!is_singular() && $loop_counter == 0) { ?>
    ADSENSE CODE HERE
    <?php
    }
    ?>

    What am I doing wrong?

    February 15, 2015 at 12:56 pm in reply to: How to put an Adsense Ad after every Second post in Genesis? #140946
    ccstone
    Participant

    Sorry Brad, since you already posted the link, I thought we were having a conversation about what you posted. I would delete it if I could, but the edit button on my post is not there anymore. But just FTR, I was referring to info on Brad's site. http://wpsites.net/web-design/add-content-after-any-number-of-post-excerpts-in-any-type-of-archive

    February 15, 2015 at 12:01 pm in reply to: How to put an Adsense Ad after every Second post in Genesis? #140940
    ccstone
    Participant

    Thanks, Brad.

    Do I put it anywhere in functions.php or at the end? I want to be careful.

    So I place this code exactly, except change the number 1 to 2? Do I leave the words "first_post" alone, even if I want it after every second post? Do this automatically create a dedicated widget that shows up in WordPress Widgets?

    /** Register New Widget */
    genesis_register_sidebar( array(
    	'id'				=> 'first-post',
    	'name'			=> __( 'Widget After First Post', 'wpsites.net' ),
    	'description'	=> __( 'Displays Your Widget Content After The First Post.', 'wpsites.net' ),
    ) );
    
    add_action( 'genesis_after_entry', 'widget_after_first_post' );
    /**
     * Brad Dalton
     * example http://wpsites.net/web-design/add-content-after-any-number-of-post-excerpts-in-any-type-of-archive/
     */
    function widget_after_first_post() {
    	global $post_count;
    
    	++$post_count;
    
    	if ( ( is_front_page() ) && 1 == $post_count ) {
    		echo '<div class="first-post">';
    		dynamic_sidebar( 'first-post' );
    		echo '</div><!-- end .first-post -->';
    	}
    
    }
    June 1, 2013 at 5:23 pm in reply to: How to change wrap background color in Focus? #43533
    ccstone
    Participant

    This is what I mean.

    http://demo.studiopress.com/focus/

    You see the dark blue background on the sides of the page? I don't know what to call that area, but I want to change it to white.

     

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)

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