Forum Replies Created
-
AuthorPosts
-
June 27, 2019 at 9:43 am in reply to: Adsense shortcut removed in Genesis 3.0.1 [adsense_hint] #491979NetzlichterMember
Anita, can you tell me where is Google saying that the possibility to tell Google Auto ads possible places to show up? My code above does nothing than this. That is not an implementation for the google ads code itself. It only integrates a hidden div via the shortcode.
So tell me how can a further Genesis or WordPress update breaks my function? That is not true what you are telling here... Only what can happen is that google not display any ads instead of the hidden divs! A hidden div is a better solution than show plain text like [adsense_hint]...
Better to have a hidden div container in the content!
June 27, 2019 at 4:49 am in reply to: Adsense shortcut removed in Genesis 3.0.1 [adsense_hint] #491975NetzlichterMemberI did a bit investigation and research.
Add this to your functions.php, then it is all working as before :).
NO EDITING REQUIRED :).//* Adsense Hint Shortcode function adsense_hint_shortcode_custom() { $defaults = array( 'id' => '', ); $atts = shortcode_atts( $defaults, $atts ); static $i = 1; $atts['id'] = sprintf( 'ad-%d-%d', get_the_ID(), $i ); $i++; $output = '<!-- adsense -->'; $output .= sprintf( '<div><ins id="adsense-hint-id-%s" style="display: none;" class="adsbygoogle-placeholder"></ins></div>', esc_attr( $atts['id'] ) ); return $output; } add_shortcode('adsense_hint', 'adsense_hint_shortcode_custom');
After you added the code above, the [adsense_hint] shortcode is woking on your pages again: https://nordicfoodliving.com/stone-age-bread/
Regards :).June 27, 2019 at 3:30 am in reply to: Adsense shortcut removed in Genesis 3.0.1 [adsense_hint] #491969NetzlichterMemberDo you know what is the correct output of the removed shortcode?
June 27, 2019 at 2:18 am in reply to: Adsense shortcut removed in Genesis 3.0.1 [adsense_hint] #491967NetzlichterMemberWould be great if someone can point me in the right direction?
How did you solved your problem: Nordicfoodliving.com ?
Thank you :).
June 25, 2019 at 2:03 am in reply to: Adsense shortcut removed in Genesis 3.0.1 [adsense_hint] #491900NetzlichterMemberHi,
but why was the support for Adsense Auto Ads been removed?
Is it somehow possible to use the shortcode again, because I used it to place my adds all other the page/ categories etc. :/.
Thank you.
June 24, 2019 at 10:27 am in reply to: Adsense shortcut removed in Genesis 3.0.1 [adsense_hint] #491884NetzlichterMemberHi there,
is there a solution for still using the [adsense_hint] shortcode? I have the same problem. Shortcode isn't working anymore and it is displayed as plain text...
November 27, 2018 at 6:14 am in reply to: Display content after posts on archive/ category pages #224621NetzlichterMemberHi Victor, the "problem" with your code that message is always the same on all categories. So that is why I didn't add a widget area...
My solution:
1. I'm using the category description text:
function beschreibung_category() { if ( is_category() && get_query_var( 'paged' ) <= 1) { echo '<div class="beschreibungkateg">'; echo term_description(); echo '</div>'; } } add_action( 'genesis_after_loop' , 'beschreibung_category' );
November 27, 2018 at 3:37 am in reply to: How to hide custom fields on archive pages with php? #224616NetzlichterMemberMy solution is:
add_action( 'genesis_before_entry', 'beautiful_add_the_meta_to_post' ); function beautiful_add_the_meta_to_post() { //* Show if single post if ( is_single() ) { add_action( 'genesis_after_entry_content', 'the_meta' ); } }
It shows "the_meta" (custom fields) under my post content only.
-
AuthorPosts