Forum Replies Created
-
AuthorPosts
-
May 21, 2017 at 6:57 am in reply to: Genesis Sample child theme blog featured image with ads below. #206783ictiempoMember
Hello Braddalto,
Thanks for providing the help. I was able to configure on how to add ads below featured image by using advance ads plug-in.
May I ask,by changing the post date to update date, will search engine read and display that on search results? Because, after changing to Genesis theme yesterday google search read the post date instead of date the post was modified.
Thanks in advance.
May 19, 2017 at 6:07 pm in reply to: Genesis Sample child theme blog featured image with ads below. #206716ictiempoMemberHello, I would appreciate if you will guide me, what php to open and where exactly the ad code to be place. As what I understood that function.php is the only php file to open. Then, I will input the featured image code. What confuses me is this:
Add your code just before the final closing curly bracket
echo 'Your Advert';
}You said that before the curly bracket but before the semicolon there is a 'your advert'? What curly bracket that you mean? That's why in this thread https://www.studiopress.community/topic/genesis-sample-child-theme-blog-featured-image-with-ads-below/#post-206695 I asked if the curly that you mean is after the featured image code? If not, how do i suppose to input my adcode. I hope you will answer me on layman's perspective.
May 19, 2017 at 7:24 am in reply to: Genesis Sample child theme blog featured image with ads below. #206695ictiempoMemberHello,
So, I will be opening Function.php paste the code `add_action( 'genesis_entry_header', 'single_post_featured_image', 15 );
function single_post_featured_image() {
if ( ! is_singular( 'post' ) )
return;$img = genesis_get_image( array( 'format' => 'html', 'size' => genesis_get_option( 'image_size' ), 'attr' => array( 'class' => 'post-image' ) ) );
printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute( 'echo=0' ), $img );}` Then after the ad code?
May 19, 2017 at 7:00 am in reply to: Genesis Sample child theme blog featured image with ads below. #206691ictiempoMemberThank you for prompt reply, I am sorry but I only knew few HTML and CSS and completely helpless on Php. What php files I will be opening, Single.php? You wrote "echo 'Your Advert'; }. As what I understood I will be replacing the "Your advert" with my ad code?
May 19, 2017 at 6:46 am in reply to: Genesis Sample child theme blog featured image with ads below. #206687ictiempoMemberThank you for your Reply Braddalto. I found it useful and I will be trying it. However, how can I add my 728x90 ads just below the featured image on every post?
-
AuthorPosts