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 5 replies - 16 through 20 (of 20 total)
  • Plugin Author yarpp

    (@jeffparker)

    @marcdk 👍🏻 on the plugin!! We’ll take a peek shortly. The yarpp div is important, hope you kept them as otherwise your plugin may break later…

    Or let users add custom css classes to that block to at least make it easier.

    Done. You can do so now.

    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.

    Should be possible with a custom template. You can structure whatever HTML you’d like in a custom template.

    For example:

    <div class="yarpp yarpp-related CUSTOM_CSS_CLASSES">
    CUSTOM TEMPLATE
    </div>

    Does the updated functionality enable you to get the result you wanted?

    Thank you!

    • This reply was modified 1 month, 3 weeks ago by yarpp. Reason: edited for clarity
    Thread Starter Marc Tönsing

    (@marcdk)

    Glad you like it. The mark up is copied from the latest posts block. Since I don’t rely on js why could a „yarpp“ class be important if the yarpp_get_related() function is used for getting the posts?

    Thread Starter Marc Tönsing

    (@marcdk)

    Will this break without the css class?

    $posts = yarpp_get_related( array('limit' => 3), $cpid );

    I thought I get the related posts and can render them as I like.

    Plugin Author yarpp

    (@jeffparker)

    But it doesn’t matter.

    It kinda does… it’s the only way YARPP becomes better. With feedback 🙂

    why could a „yarpp“ class be important

    We have new functionality coming soon that will require it. The new functionality is JavaScript driven.

    
    <div class="yarpp yarpp-related CUSTOM_CSS_CLASSES">
    CUSTOM TEMPLATE
    </div>
    

    Your YARPP custom template can contain whatever markup you want, including what’s in the latest posts block:

    
    <ul class="wp-block-latest-posts__list is-grid columns-3 wp-block-latest-posts">
    ...
    </ul>
    

    … that’s what custom templates are there for.

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

    Our opinion at the moment is that with our latest updates, you can now achieve what you were looking to do within the YARPP core plugin itself (will require 2 setup steps – custom template + custom CSS classes). If you have a differing opinion, do let us know why. What are we missing? We would love to improve upon the design.

    ps. Some of the block controls you added are quite nice! Would be a great addition to the built-in templates for easier/codeless configuration.

    Thread Starter Marc Tönsing

    (@marcdk)

    We have new functionality coming soon that will require it. The new functionality is JavaScript driven.

    Well, I doubt that users will like more JS in the frontend. But if it is optional, it might be okay. But it’s your plugin. =) I would dequeue the script personally.

    Our opinion at the moment is that with our latest updates, you can now achieve what you were looking to do within the YARPP core plugin itself. If you have a differing opinion, do let us know why. We would love to improve upon the design.

    I understand your point. You basically say: “You can change the HTML of the block to what you want.” The column width button is just an attribute in the block. It toggles a class. So yes, you could build a block like this with templates. But Gutenberg and even more full site editing is a chance to provide a block that just works and nobody has to change php, html or css. But I still think that the additional div might be a problem for the block and this way it is much easier to use for the casual user.

    You can, of course, use my block and the code. It will work in twenty-twenty-two and fse.

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