Forum Replies Created
-
AuthorPosts
-
February 17, 2015 at 1:45 pm in reply to: Would like to ONLY show titles for search results page #141132ccstoneParticipant
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?
ccstoneParticipantI 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? #140946ccstoneParticipantSorry 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? #140940ccstoneParticipantThanks, 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 -->'; } }
ccstoneParticipantThis 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.
-
AuthorPosts