• Resolved Stevehello1234

    (@stevehello1234)


    Hi – Just wondering if its possible to add AdSense JavaScript to a slide (i.e. at the bottom)

    I’ve tried but the when running the slide some of the JS just appears in the slide

    Many thanks – great plugin by the way

    ps Ideally a concept of ‘slide footer and header’ would be great – but a fair bit of work I guess?

    https://wordpress.org/plugins/slide-anything/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author simonpedge

    (@simonpedge)

    Which version of ‘Slide Anything’ are you using?
    If not version 1.5, then upgrade to this (latest) version. Versions prior to 1.5 might be stripping out some JavaScript elements.

    Thread Starter Stevehello1234

    (@stevehello1234)

    Thanks for the speedy reply – its version 1.5

    Plugin Author simonpedge

    (@simonpedge)

    Hi – can you please provide me with the link, so I can see what it is doing?

    Thread Starter Stevehello1234

    (@stevehello1234)

    Thread Starter Stevehello1234

    (@stevehello1234)

    Hows the cricket going πŸ™‚

    Plugin Author simonpedge

    (@simonpedge)

    SA 33/0. Chasing 319 set by Eng.

    Plugin Author simonpedge

    (@simonpedge)

    When you are entering the JavaScript code, you must ensure that you select ‘Text’ (and not ‘Visual’) as the editor you use when editing each slide (in slider settings screen).

    Thread Starter Stevehello1234

    (@stevehello1234)

    Hi Simon – yeah I’m using the ‘text’ option. cheers steve

    This is what I have in the slider

    <h1>Brexit - What a load of guff !</h1>
    <p>So you think you're getting a fair and democratic vote on whether to leave the EU ?</p>
    
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Brexit Slide -->
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-4163152637477815"
         data-ad-slot="3099818523"
         data-ad-format="auto"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    Plugin Author simonpedge

    (@simonpedge)

    Hi, ok, I think I’ve resolved this issue.
    Download version 1.5 again – I made a quick 1-line change to the code, and try again – your Google Adword should display now.

    Thread Starter Stevehello1234

    (@stevehello1234)

    Ah that’s brilliant – thanks Simon – really speedy fix !

    Hope the cricket goes well. But not too well – I’m supporting England πŸ™‚

    Plugin Author simonpedge

    (@simonpedge)

    No problem Steve

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Adsense within slide ?’ is closed to new replies.