• Hi there – when adding the code from Media.net for ads, my images within that post go blank. Also, affects a couple of widgets in sidebar – Latest Pins, and a Text Widget that has ads. If you visit my homepage to see what the sidebar should look like, then visit another page where I have media.net ads in, you will see that all images within the post inself goes blank, and the widgets on the sidebar become affected. If I remove the media.net ads, the page reverts back to its original self and you can see the images again. Look forward to hearing from someone who can help.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi there,

    Thank you for getting in touch with us.

    Please open wp-content/themes/kale/assets/js/kale.js file and find this line:

    if(jQuery(item).attr('src').match(/(https?:)?\/\/www\.youtube\.com/)) {

    Replace it with this code:

    if(jQuery(item).hasAttr('src') && jQuery(item).attr('src').match(/(https?:)?\/\/www\.youtube\.com/)) {

    Please let me know if that helps.

    Best

    Thread Starter makingcentsinlife

    (@makingcentsinlife)

    Hi @jarektheme
    Thanks for the reply. I wasn’t sure of how to find the file, but went into my Bluehost CPanel and clicked on File Manager and found the file that way. Hope that was correct? I replaced the code as instructed but it hasn’t made any difference. Should I change it back to the original. I really hope we can get this sorted!
    Look forward to hearing from you. Thanks for your help.

    Please replace my previous code with this:

    var attr = jQuery(item).attr('src');
    if((typeof attr !== typeof undefined && attr !== false) && jQuery(item).attr('src').match(/(https?:)?\/\/www\.youtube\.com/)) {

    and let me know if that works.

    Best

    Thread Starter makingcentsinlife

    (@makingcentsinlife)

    @jarektheme – sorry still no change with that code either.

    I’m very sorry for back and forth on this.

    Could you please contact us via our support system here: https://www.lyrathemes.com/support/.
    I am not allowed to ask for your site’s details here, which would let me help you out.

    Kind regards

    Thread Starter makingcentsinlife

    (@makingcentsinlife)

    Hi @jarektheme
    I have come on to my website today and it looks better. Images and ads in the side widget are now appearing! Yay! Just not the Pinterest Widget.

    Also, one other question: If you visit my blog page at https://www.makingcentsinlife.com/blog/
    I have this strange warning blurb showing under the Post Headings on my Blog pages, instead of the post text.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘MnetAdPublicHooks’ does not have a method ‘mnetPublicInjectInExcerpt’ in /home2/makinic3/public_html/wp-includes/class-wp-hook.php on line 286

    Any idea what the problem is there?? I am guessing it has something to do with the Media.Net ads as I can see “MnetAdPublicHooks” in the warning code. Some of these posts don’t even have a media.net ad in them?

    Thanks for your help
    Marcella

    Hi Marcella,

    ​I sincerely apologize for the delay in response.

    I had a look at your Blog page and couldn’t fidn any warning. Please see this screenshot: http://prntscr.com/l70nxv

    Are you still seeing this error?

    Best

    Thread Starter makingcentsinlife

    (@makingcentsinlife)

    Hi @jarektheme
    It seems to have fixed itself! Which is great!
    The Pinterest widget is working in Chrome, but not Firefox.
    And the warning blurb seem to just fix itself one day???

    However, I have another new issue and I am wondering if it is related to the change of coding we have done. In all my posts, I usually have a hidden Pin image. But when I choose the Pin button to share the post, none of the hidden pins appear as an option to pin? I use this code:
    <div style =”display:none;”> ENTER IMAGE URL </div>

    Any ideas on how to fix?

    thank you so much for your help
    Marcella

    I’m not sure if I understand it. Could you send me some screenshots of this issue?

    Best

    Thread Starter makingcentsinlife

    (@makingcentsinlife)

    @jarektheme – how do I send screen shots to you?

    I have floating social sharing buttons on left side of website using the Add to Any Plugin.

    When I click on Pinterest, the next window pops up with all images available to pin. However it is not showing the hidden images that I have put in the post using this code:
    <div style =”display:none;”> IMAGE URL HERE </div>

    Note: When I am in edit post mode and I click on “Preview Post” the Pinterest button on left works correctly showing all hidden pins(images).

    It used to work fine, but it doesn’t work now for some reason when viewing the page as a viewer.

    Here is a link to a post that has a hidden Pin for pinning to Pinterest. When you click on the Pinterest button floating on left side, there should be two Pins to choose from.

    https://www.makingcentsinlife.com/tiny-house-with-kids/

    thanks
    Marcella

    Hi Marcella,

    ​I apologize for the delay in response.

    I’m using LightShot App to make screenshots: https://app.prntscr.com that allows you to save screenshot on prntscr.com site and paste the URL here.

    Here is the screenshot: http://prntscr.com/lbgtqa of all pin images I got when I click Pin button on the left side on this page: https://www.makingcentsinlife.com/tiny-house-with-kids/
    It seems there are all images on this page like Related posts, About me section and ad image.

    This seems to be related to how Add To Any plugin generates images in Pin window so I would recommend to contact with Add To Any plugin support: https://wordpress.org/support/plugin/add-to-any to get quick fix for this issue.

    Best

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

The topic ‘images disappear when adding media.net code’ is closed to new replies.