Viewing 15 replies - 1 through 15 (of 36 total)
  • Thread Starter Okoth1

    (@okoth1)

    Update.

    I replace the Output.php code with the one you provide (this one) using ftp but no changes for me.

    I purged the cache, also no difference. Same for deactivating the cache.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @okoth1,

    What do you mean with “title and markup not showing” exactly?

    Thread Starter Okoth1

    (@okoth1)

    Version 5.3.3 output

    <div id="wpp-15" class="widget popular-posts">
    <h3 class="widgettitle">Top 10 resep minggu ini</h3><!-- cached -->
    <!-- WordPress Popular Posts -->
    <ul class="wpp-list"><li> <a href="https://www.www.domain.com/onion-rings">Onion Rings</a></li>
    <li> <a href="https://www.domain.com/ayam-kentucky-super-crispy" onClick="ga('send', 'event', 'Widget WPP', 'Ayam Goreng Super Crispy Click', 'Clicked');">Ayam Goreng Super Crispy</a></li>
    <li> <a href="https://www.domain.com/cireng-nasi-kobe" onClick="ga('send', 'event', 'Widget WPP', 'Cireng Nasi KOBE Click', 'Clicked');">Cireng Nasi KOBE</a></li>
    <li> <a href="https://www.domain.com/onion-rings" onClick="ga('send', 'event', 'Widget WPP', 'Onion rings Click', 'Clicked');">Onion rings</a></li>
    <li> <a href="https://www.domain.com/ayam-saus-mentega" onClick="ga('send', 'event', 'Widget WPP', 'Ayam Saus Mentega Click', 'Clicked');">Ayam Saus Mentega</a></li>
    <li> <a href="https://www.domain.com/tumis-tahu-saus-tiram" onClick="ga('send', 'event', 'Widget WPP', 'Tumis Tahu Saus Tiram Click', 'Clicked');">Tumis Tahu Saus Tiram</a></li>
    <li> <a href="https://www.domain.com/ayam-saus-tiram" onClick="ga('send', 'event', 'Widget WPP', 'Ayam Saus Tiram Click', 'Clicked');">Ayam Saus Tiram</a></li>
    <li> <a href="https://www.domain.com/pangsit-goreng-isi-sayuran" onClick="ga('send', 'event', 'Widget WPP', 'Pangsit Goreng Isi Sayuran Click', 'Clicked');">Pangsit Goreng Isi Sayuran</a></li>
    <li> <a href="https://www.domain.com/martabak-manis" onClick="ga('send', 'event', 'Widget WPP', 'Martabak Manis Click', 'Clicked');">Martabak Manis</a></li>
    <li> <a href="https://www.domain.com/sapo-tahu-saus-tiram" onClick="ga('send', 'event', 'Widget WPP', 'Sapo Tahu Saus Tiram Click', 'Clicked');">Sapo Tahu Saus Tiram</a></li>
    </ul>

    Version 5.3.4 output

    <div class="widget popular-posts" id="wpp-15">
    <ul class="wpp-list"><li> <a href="https://www.www.domain.com/onion-rings">Onion Rings</a></li>
    <li> <a href="https://www.www.domain.com/ayam-saus-tiram">Ayam Saus Tiram</a></li>
    <li> <a href="https://www.www.domain.com/tumis-tahu-saus-tiram">Tumis Tahu Saus Tiram</a></li>
    <li> <a href="https://www.www.domain.com/tumis-jamur-saus-tiram">Tumis Jamur Saus Tiram</a></li>
    <li> <a href="https://www.www.domain.com/ayam-saus-mentega">Ayam Saus Mentega</a></li>
    <li> <a href="https://www.www.domain.com/sapo-tahu-saus-tiram">Sapo Tahu Saus Tiram</a></li>
    <li> <a href="https://www.www.domain.com/onion-rings">Onion rings</a></li>
    <li> <a href="https://www.www.domain.com/ayam-kentucky-super-crispy">Ayam Goreng Super Crispy</a></li>
    <li> <a href="https://www.www.domain.com/tumis-terong-hijau">Tumis Terong Hijau</a></li>
    <li> <a href="https://www.www.domain.com/stik-kentang">Stik Kentang</a></li>
    </ul>
    • This reply was modified 3 years, 8 months ago by Okoth1.
    Thread Starter Okoth1

    (@okoth1)

    Great. previous code has been held for moderation…

    I’m missing the <h3 class=”widgettitle”> part of the output, Héctor

    Plugin Author Hector Cabrera

    (@hcabrera)

    I’ll wait for your comment to be approved by a moderator, don’t worry ??

    Thread Starter Okoth1

    (@okoth1)

    5.3.3 starts with

    <div id="wpp-15" class="widget popular-posts">
    <h3 class="widgettitle">Top 10 resep minggu ini</h3><!-- cached -->
    <!-- WordPress Popular Posts -->
    <ul class="wpp-list">

    and 5.3.4. starts with

    <div class="widget popular-posts" id="wpp-15">
    <ul class="wpp-list">
    Thread Starter Okoth1

    (@okoth1)

    Also widget markup like this won’t show

    <li>{thumb} <a href="{url}" onClick="ga('send', 'event', 'Widget WPP', '{text_title} Click', 'Clicked');">{text_title}</a></li>

    Plugin Author Hector Cabrera

    (@hcabrera)

    Alright, please show me the settings you’re using with the widget so I can test (a screenshot would suffice).

    Plugin Author Hector Cabrera

    (@hcabrera)

    Ah, onClick events are intentionally being stripped out from the code now for security reasons and because WordPress itself will likely require that in the future once CSP support is implemented, so yeah that won’t work.

    Please use a JavaScript file (eg. main.js) to attach your on-click event handlers.

    Thread Starter Okoth1

    (@okoth1)

    So, the widget setting, right, Héctor, not the Settings under Tools?

    Thread Starter Okoth1

    (@okoth1)

    These are the widget settings: https://ibb.co/j3RzZWF

    Plugin Author Hector Cabrera

    (@hcabrera)

    Yep, the widget settings. I want to see your settings, especially the HTML Markup settings, to try to reproduce what you’re seeing there.

    Thread Starter Okoth1

    (@okoth1)

    The Before / after Popular Posts: code is

    <ul class="wpp-list"><li> <a href="https://www.domain.com/onion-rings" onclick="ga('send', 'event', 'Widget WPP', 'Onion Rings Click', 'Clicked');">Onion Rings</a></li>

    • This reply was modified 3 years, 8 months ago by Okoth1.
    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks. So to fix the heading issue add <h3 class="widgettitle"> to the first field under Before/after title, and </h3> to the other one.

    Remember to click on Save to apply changes.

    Thread Starter Okoth1

    (@okoth1)

    Just read this one

    “Ah, onClick events are intentionally being stripped out from the code now for security reasons and because WordPress itself will likely require that in the future once CSP support is implemented, so yeah that won’t work.

    Please use a JavaScript file (eg. main.js) to attach your on-click event handlers.”

    So that might cause it… Not good for now but planning to start using Tag Manager anyway. Still working on the site. Came bit too early ??

Viewing 15 replies - 1 through 15 (of 36 total)
  • The topic ‘Title and markup not showing’ is closed to new replies.