eic2010
Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.This reply has been marked as private.
Ive tried that but now I get
The snippet has been deactivated due to an error on line 1:
syntax error, unexpected ‘<‘Hi again
Ive tried that and the plugin works great and goes where I want it but when I put the adsense code into the add function I get “The snippet has been deactivated due to an error on line 5:
syntax error, unexpected ‘Unit’ (T_STRING), expecting ‘(‘the adsense code is
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– Link Unit Responsive –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-****************”
data-ad-slot=”***********”
data-ad-format=”link”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>”;
}
}so the code I entered looks like:
add_action(‘geodir_after_tab_content’,’_my_tab_content_after’,10,1);
function _my_tab_content_after($tab){
if($tab== ‘related_listing’){
echo “<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– Link Unit Responsive –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-****************”
data-ad-slot=”***********”
data-ad-format=”link”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>”;
}
}I tried removing line 5 but then just got more error messages.
Any ideas?
Thanks again for your help, much appreciated!
Silly me – of course! I’d done that on another one! Thanks anyway and sorry for the inconvenience
Apologies for my ignorance but where do I put that?
Thats great, Ive gone with the more info tab and renamed it to Contact – Thanks for your quick response and help!
Yes I do have it as a list view. I dont want it in the related listings but underneath it
Ok thanks
I’m not overly confident changing templates!
Hi
Yes that would be great thank you. I did create a html field (sceenshot attached) which will add it but it involves adding it each time to each listing – something I dont want. Not sure if there is a way of having this code always in there by default?Thanks for the quick reply. Ideally though I want the adsense to be contained within the actual listing. If I use the widget on the bottom it goes across the full width. If you look at my screen shot attached you will see where the adsense has gone and where I ideally would like it.
Thanks again for your help!Hi
Please see screenshot attached. Its on the individual listing page. At the moment the business address etc is on the right hand side. If possible I would like it moved under the main slider image and above the profile info. All my other pages on my site have a right sidebar with different information and I would like this listing page to be the same as the other pages on my site. Is this possible?
Thanks again for all your help! -
AuthorPosts