• Resolved wordpresslover7

    (@wordpresslover7)


    Hi, I want to insert the above shortcode automatically with Adinserter blocks. Unfortunately it doesn’t work out of the box. I read about Adinserter shortcodes but it does not refer to the third party shortcodes. This is actually a banner in the form of hotspot.

    [fusion_image_hotspot_point pos_x="82.0" pos_y="55.9" icon="" title="Zobacz" button_action="link" long_title="" long_text="" popover_placement="auto" link="https://rekinfinansow.pl//rf/lokata-inbank-lojalna/?cost2profit=banercontentzarabianie" link_title="Zobacz" link_target="_blank" font_size="" hotspot_text_color="" hue="" saturation="" lightness="" alpha="" hotspot_background_color="rgba(255,255,255,0)" hotspot_hover_text_color="" hotspot_hover_background_color="" icon_distance="" padding_top="" padding_right="" padding_bottom="" padding_left="" border_radius_top_left="" border_radius_top_right="" border_radius_bottom_right="" border_radius_bottom_left="" /][/fusion_image_hotspots]

    It would work if Adinserter inserted the first part of the shortcode, unfortunately it converts into div text.



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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Spacetime

    (@spacetime)

    Hello,

    the plugin expands WP shortcodes before insertion via WP function do_shortcode (). Whetever this function returns gets inserted.

    Maybe this is not a registered WP shortcode. The responsible plugin may process the post content like Ad Inserter (via the_content () filter hook) and replace this “shortcode” with something.

    Remote debugging doesn’t seemt to be enabled so I can’t check.

    You can try to lower Ad Inserter plugin priority to some lower number (e.g. 5) for earlier processing/insertion:
    https://adinserter.pro/documentation/plugin-settings#plugin-priority

    Thread Starter wordpresslover7

    (@wordpresslover7)

    The remote debugging is now on. The shortcode is of course registered – it is showed in other places on the page. I tried to change Adinserter priority , eg. 5 but it does not insert any code.

    Thread Starter wordpresslover7

    (@wordpresslover7)

    Please let me know if debugging works for you as I can see it works in admin, but when I am logged out I cannot see the debugging blocks etc.

    I think the problem is Adinserter does not process the two-parts shortcodes. I looks like it strips the first part.

    Plugin Author Spacetime

    (@spacetime)

    As explained, if the “shortcode” gets replaced with something that doesn’t mean the shortcode is registered in WP. Please check my previous post.

    This is the shortcode in the code block:

    [fusion_image_hotspot_point pos_x="82.0" pos_y="55.9" icon="" title="Zobacz" button_action="link" long_title="" long_text="" popover_placement="auto" link="https://rekinfinansow.pl//rf/lokata-inbank-lojalna/?cost2profit=banercontentzarabianie" link_title="Zobacz" link_target="_blank" font_size="" hotspot_text_color="" hue="" saturation="" lightness="" alpha="" hotspot_background_color="rgba(255,255,255,0)" hotspot_hover_text_color="" hotspot_hover_background_color="" icon_distance="" padding_top="" padding_right="" padding_bottom="" padding_left="" border_radius_top_left="" border_radius_top_right="" border_radius_bottom_right="" border_radius_bottom_left=""/][/fusion_image_hotspots]

    This is what is returned by the do_shortcode () and inserted:

    <a style="--awb-hotspot-background-color:rgba(255,255,255,0);--awb-pos-x:82.0%;--awb-pos-y:55.9%;" class="awb-image-hotspots-hotspot awb-image-hotspots-hotspot-4"  title="Zobacz" target="_blank"> Zobacz</a>[/fusion_image_hotspots]

    So the plugin inserts exactly what is returned from the shortcode expansion.

    It seems that your code is wrong, you are closing a shortcode that is not opened: [/fusion_image_hotspots]

    I think the problem is Adinserter does not process the two-parts shortcodes. I looks like it strips the first part.

    As explained, Ad Inserter only inserts what the responsible plugin for the shortcode returns. Ad Inserter itself does not expand other shortcodes, it calls WP function for this.

    Thread Starter wordpresslover7

    (@wordpresslover7)

    I cannot believe how damn I am. You are right of course, I inserted incomplete shortcode, it lacked the begining (first part, standalone shortcode, closing part)

    I am really sorry for taking your time!

    Anyway I hope this thread will help others debug similar problems without your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Third party shortcode insertation’ is closed to new replies.