Support » Plugin: YARPP - Yet Another Related Posts Plugin » What is api.engage.bidsystem.com/adk_mini_logo.png?

  • Hi,

    By default, this plugin adds this url as a css background in its templates: .yarpp-promote{background:url(//api.engage.bidsystem.com/adk_mini_logo.png) What does this do? Is this some kind of tracking? Can it be switched off? Why is this on by default?

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author yarpp

    (@jeffparker)

    Hi @marcdk thank you for bringing this to our attention. This is a relic from the past (from the past owner) when YARPP used to have a monetization option to include sponsored content in the recommendations. We’ll get this CSS rule cleaned up in the next release.

    Thread Starter Marc Tönsing

    (@marcdk)

    Thank you. Please consider making the related.css file optional or at least an opt -out option

    Plugin Author yarpp

    (@jeffparker)

    @marcdk

    Dequeue YARPP’s CSS Style Sheet (related.css):

    
    add_filter( 'yarpp_enqueue_related_style', '__return_false' );
    

    Docs:
    https://support.shareaholic.com/hc/en-us/articles/4408775687060-Developers-Filters


    https://yarpp.com

    Thread Starter Marc Tönsing

    (@marcdk)

    Okay. Thank you. Is there a way to remove the <div> with the classes “yarpp yarpp-related yarpp-related-block yarpp-template-yarpp-template-[templatename]” that is around the yarpp block?

    Plugin Author yarpp

    (@jeffparker)

    There isn’t. This particular markup will be critical for new functionality that is coming soon.

    Do you prefer it was not a div and instead something else? As context, the classes are what we need to keep, but flexible on div, span, etc.

    Thread Starter Marc Tönsing

    (@marcdk)

    I think the problem is that this does not work with blocks. Please consider removing this in the block context when yarpp renders as a block.

    Plugin Author yarpp

    (@jeffparker)

    The YARPP block should render fine. Can you please share additional detail on the issue?

    Thread Starter Marc Tönsing

    (@marcdk)

    There are WordPress Gutenberg CSS rules like

    .wp-container-[blockid] > * {
        max-width: 650px; 
        margin-left: auto !important;
        margin-right: auto !important;
    }

    that are a problem in this context. The blocks normally a like this:

    <ul class=”wp-block-latest-posts__list is-grid columns-3 wp-block-latest-posts alignwide”>

    <ul class=”wp-block-latest-posts__list is-grid columns-3 wp-block-latest-posts alignwide”>

    and so on.

    Your block does this:

    <div class="yarpp yarpp-related yarpp-related-block yarpp-template-yarpp-template-wp-columns">
      <ul class="wp-block-latest-posts__list is-grid columns-3 wp-block-latest-posts alignwide">
                                         
      </ul>
    </div>

    so this rules don’t allow the alignwide styles without customizing the css. The idea would be that your block generates the same html like “last posts” block or a wp column block so no additional styles would be needed to accomplish the same. That way t would be very easy to maintain a consistent layout with the new site building.

    Thread Starter Marc Tönsing

    (@marcdk)

    Or let users add custom css classes to that block to at least make it easier. But the “latest posts” block uses an “ul” tag. So I think it would be easier to mimic the HTML of the last posts block without the additional div tags.

    Plugin Author yarpp

    (@jeffparker)

    New release is live! Cleans up the CSS. Removed the forced left-aligment from yarpp-related – so now it will inherit from the parent. Looking into the other issue.

    Thread Starter Marc Tönsing

    (@marcdk)

    Thanks! I don’t know how to solve this if there are tags around the yarpp block you can’t change using the template and with block controls. WordPress uses this > * css rules which affects all elements including your div. =/

    Plugin Author yarpp

    (@jeffparker)

    Blocks allow you to set “Yarpp Block -> Advanced -> Additional CSS class(es)”. I see a bug where these are not actually being applied. This will be fixed in the next release and I *think* will resolve your issue and make it easier to apply other existing styles to the block…

    Thread Starter Marc Tönsing

    (@marcdk)

    Well, in parts yes. But you have to add some classes by using this and add other classes via the template. It would be great if YARPP supported a standard WordPress block for twenty-twenty-two onwards without hacks. If every site now has to support full site editing in the future it would be great if yarpp would be part of that. I love the plugin.

    Plugin Author yarpp

    (@jeffparker)

    With today’s release (v5.27.8), any additional CSS class(es) set in YARPP Block Settings are now applied:

    Yarpp Block -> Advanced -> Additional CSS class(es)

    @marcdk YARPP Blocks support YARPP Custom Templates. A custom template + setting additional CSS classes should get you what you need?

    Thread Starter Marc Tönsing

    (@marcdk)

    Hi. Well, not really. But it doesn’t matter. I made plug-in that solves this: https://wordpress.org/plugins/list-yarpp-block/

    It uses yarpp functions and provides the Gutenberg Interface for the block.

Viewing 15 replies - 1 through 15 (of 20 total)
  • You must be logged in to reply to this topic.