• Resolved Redyan

    (@redyan)


    Hi, by activating the plugin I see that in the most recent post, under the featured image, the title of the post is shown, as if it were a duplicate. This happens with any plugin option (Text, Text Legacy, Circle etc.). If I select “Use JavaScript for showing markers” the “New” no longer appears either. Attached is the example image. Can it be solved?

    Thanks!

    Image here: https://ibb.co/gJRy7vf

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter Redyan

    (@redyan)

    Hi Ilychkov, thank you.
    Replacement made, nothing new on this planet ??

    Plugin Author i.lychkov

    (@ilychkov)

    Hi, sorry for leaving you hanging!

    As I understood, enabling the checkbox “Allow outside the post list”, which is supposed to make my plugin only work in the Loop, makes it so the New marks stop appearing in the blog’s post list, and yet they still keep appearing (in a glitched form) in the WP Bakery widget. The only thing I can suppose is that the post list in WP Bakery is considered to be in the Loop, while the blog’s list isn’t (which is kinda wild). So there’s no way for my plugin to determine that it should not be active in WP Bakery.

    It seems to me that my plugin in its current form cannot be integrated with Ronneby or WP Bakery. Sorry ??

    You can try contacting the theme’s support, but the problem seems a bit fundamental to be resolved right away – or at all. However, maybe they might suggest something after all.

    Thread Starter Redyan

    (@redyan)

    Don’t apologize at all, in fact you were very helpful and I thank you very much. At this point I’ll give you my thoughts. I believe your plugin works well and correctly; I’m telling you this because I did some tests with custom code added via functions.php and, you won’t believe it, the problems are absolutely the same. Even with these scripts the post title is injected into the alt of the image and creates the duplicate of the title inside the Post Loop. Below I leave you some examples of filters used via function that return the same problems.

    Regarding the WPBakery Page Builder plugin, the theme has configured it in a very profound way, customizing many features of the default services, which is why going into detail becomes truly impossible. Let’s be clear, Ronneby for me is one of the best WordPress themes I have purchased and I strongly believe this, it is probably as complex as it is beautiful.

    However, I wrote to their support asking for help on how to get what I need; If you like I will keep you updated.

    I thank you so much for your professionalism, your availability towards everyone; I can tell you that for being “free” users we are very lucky to have support like yours ??

    Filters that did not give a positive result

    add_filter( 'the_title', 'ag_custom_post_title_link' );
    function ag_custom_post_title_link( $title ) {
        $postdate = get_the_date( 'Y-m-d' );
    $nows = date( 'Y-m-d' );
        if ( $postdate == $nows) {
            $title = '<span class="new-badge">New</span>'.$title;
        }
        return $title;
    }

    Of course you can change and use the element type as you wish; in my case it didn’t work

    es:
    $title = '<div class="new-badge">New</div>'.$title;
    $title = '<span class="new-badge">New</span>'.$title;
    or image:
    $title = '<img src="https://example.com/img.gif">'.$title;
    Thread Starter Redyan

    (@redyan)

    Hi Ilychkov,
    Support responded to me confirming that the theme does not support this feature. In addition to thanking you, I would say that we can consider the ticket closed.

    See you at the next possible opportunity ??

    Plugin Author i.lychkov

    (@ilychkov)

    You’re very kind, thank you! And thank you so much for the review.

    Well, a bit disappointing that there was no success, but it’s been pleasure investigating this case with you, haha. Feel free to contact me anytime. Cheers!

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Title duplicate on image’ is closed to new replies.