eic2010

Forum Replies Created

Viewing 13 posts - 196 through 208 (of 208 total)
  • Author
    Posts
  • in reply to: Adding adsense unit under related listing #413014

    eic2010
    Full Member
    Post count: 209
    This reply has been marked as private.
    in reply to: Grid View Two Columns #413006

    eic2010
    Full Member
    Post count: 209
    This reply has been marked as private.
    in reply to: Adding adsense unit under related listing #413005

    eic2010
    Full Member
    Post count: 209

    Ive tried that but now I get
    The snippet has been deactivated due to an error on line 1:
    syntax error, unexpected ‘<‘

    in reply to: Adding adsense unit under related listing #412626

    eic2010
    Full Member
    Post count: 209

    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!

    in reply to: Can you change 'events' to 'whats on' #411666

    eic2010
    Full Member
    Post count: 209

    Silly me – of course! I’d done that on another one! Thanks anyway and sorry for the inconvenience

    in reply to: Adding adsense unit under related listing #411665

    eic2010
    Full Member
    Post count: 209

    Apologies for my ignorance but where do I put that?

    in reply to: Move info from right hand sidebar to listing #411664

    eic2010
    Full Member
    Post count: 209

    Thats great, Ive gone with the more info tab and renamed it to Contact – Thanks for your quick response and help!

    in reply to: Adding adsense unit under related listing #411648

    eic2010
    Full Member
    Post count: 209

    Yes I do have it as a list view. I dont want it in the related listings but underneath it

    in reply to: Change 'City' to 'Town' #411635

    eic2010
    Full Member
    Post count: 209

    Ok thanks

    in reply to: Adding adsense unit under related listing #411629

    eic2010
    Full Member
    Post count: 209

    I’m not overly confident changing templates!

    in reply to: Adding adsense unit under related listing #411627

    eic2010
    Full Member
    Post count: 209

    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?

    in reply to: Adding adsense unit under related listing #411620

    eic2010
    Full Member
    Post count: 209

    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!

    in reply to: Move info from right hand sidebar to listing #411540

    eic2010
    Full Member
    Post count: 209

    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!

Viewing 13 posts - 196 through 208 (of 208 total)