This topic has 5 replies, 3 voices, and was last updated 8 years by Radu.

  • Author
  • #176540
     SteveHood
    Participant

    Hello!

    I’m having a problem with the Ajax search tool in the menu bar. The summary under the post title is wrong. It does not show the Snippet or the Excerpt from the post. It shows the first text from the post. When Google Adsense is before the text in the post it is showing Google code. Is there a way to correct this to show the Excerpt or Snippet for the summary?

    Please see attachment. It shows the issue.

    Thanks!

    #176654
     Kieran_SQ
    Moderator

    Hi,

    Sorry to hear you’re having issues with the preview. Can you let me know how you’re adding the Google AdSense code and a copy of the code (using the code tags in this editor) itself.

    Thanks,

    Kieran.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #176863
     SteveHood
    Participant

    Hello Kieran,

    Thank you for getting back to me. I’m adding the code by copying it directly from Adsense into WP and centered it with the div tag. I’ve tried span instead and nothing at all to center the code. All provide the same results. I have attached a screenshot from the text editor too.

    Here’s the Adsense code:
    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
    <!– Resp-HTTH –>
    <ins class=”adsbygoogle”
    style=”display:block”
    data-ad-client=”ca-pub-1063124803201850″
    data-ad-slot=”3302713528″
    data-ad-format=”auto”></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    Thank you for your help.

    #176953
     Radu
    Moderator

    Hi,
    Just replace this file content : /wp-content/themes/kleo/lib/theme-functions.php
    with this one : https://pastebin.com/raw/RUKYnUPN

    This will be fixed in next theme update

    Chers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #176993
     SteveHood
    Participant

    Thank you, Radu! Problem fixed.

    #177047
     Radu
    Moderator

    Great

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?