Tagged: adsense
-
AuthorPosts
-
September 2, 2015 at 4:59 am #496824
I want show adsense ads above pagination.
I’m use grid blog layout. Please help me.
September 2, 2015 at 2:13 pm #497100Hey subrakavi!
Thank you for using Enfold.
You can modify the config-templatebuilder > avia-shortcodes > postslider.php file. Place the adsense somewhere before this line of code:
if(!empty($avia_pagination)) $output .= "<div class='pagination-wrap pagination-slider'>{$avia_pagination}</div>";
Best regards,
IsmaelSeptember 3, 2015 at 2:43 pm #497652Thanks for your support..
I’m placing adsense code with your guidance but it has error..
Parse error: syntax error, unexpected ‘<‘ in /home/——/public_html/wp-content/themes/Enfold/config-templatebuilder/avia-shortcodes/postslider.php on line 443
Please help me..
Thanks.
September 3, 2015 at 2:57 pm #497665Hi!
Please add your code right above the line Ismael mentioned as following
echo ' YOUR CODE HERE ';
Cheers!
YigitSeptember 3, 2015 at 3:23 pm #497691Thanks Yigit!
Ads now showing but its showing at top of the page. I want show ads between content and pagination. Im awaiting for your replay. Thanks..
September 4, 2015 at 4:22 am #498112Friends.. I need your help..
September 4, 2015 at 3:20 pm #498429Hey!
Please find the code Ismael mentioned
if(!empty($avia_pagination)) $output .= "<div class='pagination-wrap pagination-slider'>{$avia_pagination}</div>";
and change it to following
if(!empty($avia_pagination)) $output .= "YOUR CODE GOES HERE<div class='pagination-wrap pagination-slider'>{$avia_pagination}</div>";
make sure to change all double quotes in your code to single quotes or you will crash your site.
Regards,
YigitSeptember 4, 2015 at 4:28 pm #498479Thanks for replaying.
But it has error! (sorry!).
Parse error: syntax error, unexpected ‘Botom’ (T_STRING), expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /home/—-/public_html/wp-content/themes/Enfold/config-templatebuilder/avia-shortcodes/postslider.php on line 445Awaiting for your replay.
Thanks
- This reply was modified 9 years, 2 months ago by subrakavi.
September 4, 2015 at 5:28 pm #498515September 4, 2015 at 6:43 pm #498553Im providing login credential. Every time active visitors on my site is above 35+. So please take care my site to save my active users.
- This reply was modified 9 years, 2 months ago by subrakavi.
September 4, 2015 at 7:35 pm #498578Yigit! Im waiting for your support! Please..
September 4, 2015 at 8:57 pm #498599Hi!
When posting a message again, it goes last to the list, that is why Yigit could not assist faster.
The code you posted is wrong. Please copy the code Yigit provided from the post and not from the email that arrived.
Thanks a lot
Cheers!
BasilisSeptember 5, 2015 at 12:51 pm #498673Using this plugin https://wordpress.org/plugins/wordpress-plugin-for-simple-google-adsense-insertion/ I generate short-code.
Then I insert shortcode instead of “YOUR CODE GOES HERE” This is perfectly working.
Finally the successful codes look likes
if(!empty($avia_pagination)) $output .= "[wp_ad_camp_5]<div class='pagination-wrap pagination-slider'>{$avia_pagination}</div>";
Thanks for awesome support.
September 7, 2015 at 4:25 am #498995 -
AuthorPosts
- The topic ‘Adsense ads above pagination.’ is closed to new replies.