Forum Replies Created

Viewing 15 replies - 1 through 15 (of 368 total)
  • Plugin Author brianmcculloh

    (@brianmcculloh)

    Unfortunately as it stands now there is not a way to show the word count on the front-end. You’re right that it does take this into account when calculating the read time, so it would be possible to update the plugin to optionally display this on the front-end. I will add that to the list for a future update. Thanks for the suggestion!

    Plugin Author brianmcculloh

    (@brianmcculloh)

    Thank you, I will add this to the list for the next update!

    Thread Starter brianmcculloh

    (@brianmcculloh)

    I see, yes that makes sense, thank you.

    Thread Starter brianmcculloh

    (@brianmcculloh)

    Yes, images work fine. That is what I’ve been trying to say, it’s not that the ad code is not being generated in ajax loaded content, it’s that the javascript code is not being executed in ajax loaded content. There are no errors with the javascript code because it’s the exact same code that loads correctly upon page load. Here is one of the ad spots for reference:

    <div id="6633386f-1bee-4b64-997e-3c060893ed52" class="_ap_apex_ad" style="width: 336px; height: 280px;">
    
    <script>
    
    var adpushup = window.adpushup = window.adpushup || {};
    
    adpushup.que = adpushup.que || [];
    
    adpushup.que.push(function() {
    
    adpushup.triggerAd("6633386f-1bee-4b64-997e-3c060893ed52");
    
    });
    
    </script>
    
    </div>
    Thread Starter brianmcculloh

    (@brianmcculloh)

    I have this enabled already. I tried setting it to 1, 10, and all, and none of the options worked. I also have Disable level limitation checked. The Priority setting is set to 100. Ads load fine in the first article on the page, but still do not load in ajax loaded subsequent posts.

    Could it be the id issue I mentioned previously?

    Thread Starter brianmcculloh

    (@brianmcculloh)

    Regarding “the_content filter missing” I can confirm I’m using the_content() rather than get_the_content() for my ajax loaded content using this code:

    ob_start();
    the_content();
    $content_output = ob_get_clean();

    Regarding “single post not using the loop” I do not have this option recommended by the FAQ: “Advanced Ads > Settings > General > Unlimited ad injection” Do I need to have the pro version to see that or something?

    Also, I’m wondering if it’s because of duplicate IDs. This is the code I have in my sidebar widget that loads initially on the page:

    <div id="6633386f-1bee-4b64-997e-3c060893ed52" class="_ap_apex_ad" style="width: 336px; height: 280px;">
    
    <script>
    
    var adpushup = window.adpushup = window.adpushup || {};
    
    adpushup.que = adpushup.que || [];
    
    adpushup.que.push(function() {
    
    adpushup.triggerAd("6633386f-1bee-4b64-997e-3c060893ed52");
    
    });
    
    </script>
    
    </div>

    Then in my infinite scroll loading, I’m calling that same widget again, which would obviously result in the same div id being reused. Is that perhaps what’s causing this?

    Thread Starter brianmcculloh

    (@brianmcculloh)

    Thank you for your response. I have already read through that article and implemented the recommendations, and I’m still not able to get it to work. The site in mind is here: https://ambcrypto.com/blog/chat-gpt-for-fitness-management/

    You can see as. you scroll to the end of the article, another article automatically loads in, but the in-content ads and sidebar ads, all of which use Advanced Ads for placement, do not appear. After I load the next article, I’m executing this code:

    // Trigger Advanced Ads after new content is appended
    if (typeof window.advads !== 'undefined') {
    console.log('content loaded');
    console.log(window.advads);
    window.advads.checkAds();
    }

    This is what I see in the console:

    content loaded
    mvpcustom.js?ver=1702299603:67 {supports_localstorage: ?, max_per_session: ?, count_up: ?, set_cookie_exists: ?, get_cookie: ?,?…}center_fixed_element: ? (e)center_vertically: ? (e)close: ? (e)cookie_exists: ? (e)count_up: ? (e,t)find_wrapper: ? (e,t)fix_element: ? (e,t)get_cookie: ? (e)max_per_session: ? (e,t)move: ? (e,t,o)privacy: {state: 'not_needed', state_executed: true, get_state: ?, is_adsense_npa_enabled: ?, dispatch_event: ?,?…}set_cookie: ? (e,t,o,a,n,i)set_cookie_exists: ? (e)set_cookie_sec: ? (e,t,o,a,n,i)set_parent_relative: ? (e,t)supports_localstorage: ? ()wait_for_images: ? (e,t)Prototype: Object
    mvpcustom.js?ver=1702299603:80 Error loading next article: TypeError: window.advads.checkAds is not a function
    at mvpcustom.js?ver=1702299603:68:20

    Note the TypeError that is being triggered from the call to window.advads.checkAds();

    So, window.advads exists in the context of my ajax call, but it does not have a method called checkAds(). I’m assuming there’s a method I need to call at this point to load in the new ads, I just don’t know what it is.

    Plugin Author brianmcculloh

    (@brianmcculloh)

    These are both excellent points and the first one is actually already on my future updates list. I will consider both of these in a future update. Thank you!

    Plugin Author brianmcculloh

    (@brianmcculloh)

    That text is wrapped in the correct function that allows for translation, so I’m not sure why it’s not recognized by Polylang Pro, but you can manually modify it by editing the worth-the-read.php file at line 555 which looks like this:

    $time_format = empty($options[‘time-format’]) ? __(‘# min read’,’worth-the-read’) : $options[‘time-format’];

    Plugin Author brianmcculloh

    (@brianmcculloh)

    Oh I’m sorry, I thought my updated code fixed it. Did you try the updated code I provided instead of the original code?

    Plugin Author brianmcculloh

    (@brianmcculloh)

    Resolved.

    Plugin Author brianmcculloh

    (@brianmcculloh)

    I played around with it a bit more and I think I came up with a slightly different solution. Instead of the code I posted above, try this instead:

    body .tutor-course-single-content-wrapper #tutor-single-entry-content .tutor-course-topic-single-footer {
    margin-top:400px;
    }
    Plugin Author brianmcculloh

    (@brianmcculloh)

    Aha, this is very good to know, thank you so much for alerting us of this! I believe it is only a one-time thing due to the security fix in the 1.14 update. Subsequent plugin updates should not have any issues. Thanks!

    Plugin Author brianmcculloh

    (@brianmcculloh)

    Thanks for the video, yes I do see what you’re saying now. It doesn’t quite complete the progress at the very bottom of the page. It happens because of how WTR calculates the bottom of the content. It wants the end of the content to be at least 2/3 down the page rather than against the very bottom of the page, since this is generally how people read content. When a site has a very short footer and the content of the site goes almost to the bottom of the page, that can cause this to happen.

    Here is a suggestion to get it to work without having to modify how the WTR plugin code works. Add this code snippet to your theme custom CSS. If you don’t know where that is let me know and I can explain further:

    body .tutor-course-spotlight-wrapper .tutor-course-spotlight-tab {
    padding-bottom:250px;
    }
    Plugin Author brianmcculloh

    (@brianmcculloh)

    It is possible that you have another plugin active that also uses the Redux Options Framework, which is the third-party software that manages the options page. Do any of your other plugins use the same type of options page as WTR? Have you tried temporarily disabling other plugins to see if the issue is resolved? Thanks for your patience on this.

Viewing 15 replies - 1 through 15 (of 368 total)