Forum Replies Created

Viewing 15 replies - 1 through 15 (of 39 total)
  • 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 ??

    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, thank you.
    Replacement made, nothing new on this planet ??

    Thread Starter Redyan

    (@redyan)

    Change made, now the JS is compiled as you asked. Unfortunately I don’t see any changes. While I have the console open I have no cache, I still cleared all cache manually.

    Question: do you need the “New” markers to show at all in Custom WP Bakery? It’s going to be rather problematic if there’s a need for that.

    No, it’s not essential, in this case I would have to find a way not to show a title constructed with <mnp-mark> otherwise I can’t keep it active as the recent post logic is still invoked.

    If you agree we can do it this way, because I don’t want to commit you any further. I can try contacting the theme support and asking for their opinion on the matter.

    let me know if you agree.

    Thread Starter Redyan

    (@redyan)

    Unfortunately it is not conclusive. Removing the flag from “Allow outside the post list” and keeping the flag on “Use JavaScript for showing markers” does not return the JS error but the situation is the same. In the Post Loop there is no NEW label and in the Custom WP Bakery in Home it is always printed in the title ??

    Thread Starter Redyan

    (@redyan)

    wp-content\plugins\mark-new-posts\mark-new-posts.php removed “#”
    wp-content\plugins\mark-new-posts\mark-new-posts.php replaced “10” to “100”.

    I confirm that the error regression has occurred. The problem has returned (JS error and title duplicated). Regarding what I mean to be outside the post Loop standard, I’ll try to explain myself better. The Ronneby theme offers the possibility of using WP Bakery with some customizations. Its operation, however, requires the same logic of publishing posts. I attach the screen and the source of the block.

    Image: https://ibb.co/0Khzx4x

    Source about Home WP Bakery block

    <div class="title-wrap">
        <div class="dfd-blog-heading-wrap"><div class="dfd-blog-title widget-title" style=""><a  title="L’importanza delle foto per vendere casa" data-cmp-ab="2">&lt;mnp-mark&gt;L’importanza delle foto per vendere casa&lt;/mnp-mark&gt;</a></div>        <div class="dfd-meta-wrap">
            <div class="entry-meta meta-bottom">
                <span class="entry-date">7 Febbraio 2024</span> <span class="before-author">da</span>
                <span class="byline author vcard">
                    <a  rel="author" class="fn" data-cmp-ab="2">
                    Lino Mastroianni    </a>
                </span> <span class="before-category">in</span>
                <span class="byline category">
                    <a  class="fn" data-cmp-ab="2">
                        <span class="cat-name">Affittare casa</span>
                    </a>
                </span>
            </div>
        </div>
    </div>
    </div>

    what else can I say… thank you, and thank you again.

    If you need:
    Home: https://www.casafocus.it/
    Post Loop: https://www.casafocus.it/pubblicazioni/

    • This reply was modified 9 months, 3 weeks ago by Redyan.
    Thread Starter Redyan

    (@redyan)

    wp-content\plugins\mark-new-posts\mark-new-posts.php Modified.

    In a Post Loop it works fine, no problems with image properties.

    <div class="entry-thumb">
                <img src="https://www.mydomain.it/wp-content/uploads/2024/01/cf-trascrizione-preliminare-900x600.jpg" width="1920" height="1080" alt="Trascrizione del preliminare: ecco tutti i vantaggi" data-cmp-ab="2" data-cmp-info="10">
    </div>

    The NEW label works good in post Title too (Post Loop and singular)

    <div class="dfd-blog-title"><a  data-cmp-ab="2"><mnp-mark><span class="mnp-unread"><span class="mnp-text mnp-text-dfd-ronneby_child">New</span><span class="mnp-title-text">Trascrizione del preliminare: ecco tutti i vantaggi</span></span></mnp-mark></a></div>

    The only problem I have is out of standard Post Loop (Flag ON Disable for custom posts), where I use widget, I see the post Title so:

    <mnp-mark>Trascrizione del preliminare: ecco tutti i vantaggi<mnp-mark>
    <a  title="Trascrizione del preliminare: ecco tutti i vantaggi" data-cmp-ab="2"><mnp-mark>Trascrizione del preliminare: ecco tutti i vantaggi<mnp-mark></a>

    if it could intercept the class I could use CSS but it is printed directly in the title via JS. But this is already a great success ??

    Thread Starter Redyan

    (@redyan)

    allow pasting” on DevTool

    Case 1

    • Flag OFF Disable for custom posts
    • Flag ON Allow outside the post list
    • Flag ON Use JavaScript for showing markers
    mark-new-posts.js?ver=6.4.3:12 Uncaught TypeError: Cannot read properties of undefined (reading 'outerHTML')
        at HTMLDocument.<anonymous> (mark-new-posts.js?ver=6.4.3:12:28)
    (anonymous) @ mark-new-posts.js?ver=6.4.3:12

    Case 2

    • Flag ON Disable for custom posts
    • Flag OFF Allow outside the post list
    • Flag ON Use JavaScript for showing markers
    document.getElementsByClassName('mnp-unread')[0]
    - undefined

    Case 3

    • Flag OFF Disable for custom posts
    • Flag OFF Allow outside the post list
    • Flag OFF Use JavaScript for showing markers
    document.getElementsByClassName('mnp-unread')[0]
    
    <span class="mnp-unread"><span class="mnp-text mnp-text-dfd-ronneby_child">New</span><span class="mnp-title-text">Trascrizione del preliminare: ecco tutti i vantaggi</span></span>

    Case 4

    • Flag OFF Disable for custom posts
    • Flag OFF Allow outside the post list
    • Flag ON Use JavaScript for showing markers
    document.getElementsByClassName('mnp-unread')[0]
    - undefined

    I set the console to not handle any cache while it is being used

    Thread Starter Redyan

    (@redyan)

    Right! I understand
    Below are all the checks I was able to do, I will try to be as effective as possible to be able to give you my little support. The checks will be divided by step and each step will have different configurations in the plugin. Let’s start with the odyssey ??

    1st Step in Post Loop

    • Marker placement: Before post TitleMarker type: “New” Text
    • Consider a post as read: after it was opened
    • Flag ON A post only stays highlighted for 5 days after publishing
    • Flag OFF Allow outside the post list
    • Flag ON Use JavaScript for showing markers

    Source on featured image

    <div class="entry-thumb">
                <img src="https://www.mydomain.it/wp-content/uploads/2024/01/cf-trascrizione-preliminare-900x600.jpg" width="1920" height="1080" alt="<mnp-mark>Trascrizione del preliminare: ecco tutti i vantaggi</mnp-mark>" data-cmp-ab="2" data-cmp-info="10">
    </div>

    Source on post Title – NO NEW is present

    <div class="dfd-blog-title"><a  data-cmp-ab="2"><mnp-mark>Trascrizione del preliminare: ecco tutti i vantaggi</mnp-mark></a></div>

    In home page I have another custom loop with WP Bakery and this is the result on front. You can see that it’s printed inside the title.

    <div class="dfd-blog-title widget-title" style=""><a  title="<mnp-mark>Trascrizione del preliminare: ecco tutti i vantaggi</mnp-mark>" data-cmp-ab="2">&lt;mnp-mark&gt;Trascrizione del preliminare: ecco tutti i vantaggi&lt;/mnp-mark&gt;</a></div>

    No JS Error in console

    2nd Step in Post Loop

    • Marker placement: Before post Title
    • Marker type: “New” Text
    • Consider a post as read: after it was opened
    • Flag ON A post only stays highlighted for 5 days after publishing
    • Flag ON Allow outside the post list
    • Flag ON Use JavaScript for showing markers

    Source on featured image

    <div class="entry-thumb">
                <img src="https://www.mydomain.it/wp-content/uploads/2024/01/cf-trascrizione-preliminare-900x600.jpg" width="1920" height="1080" alt="Trascrizione del preliminare: ecco tutti i vantaggi" data-cmp-ab="2" data-cmp-info="10">
    </div>

    Source on post Title – NO NEW is present

    <div class="dfd-blog-title"><a  data-cmp-ab="2"><mnp-mark>Trascrizione del preliminare: ecco tutti i vantaggi</mnp-mark></a></div>

    In home page Custom WP Bakery

    <div class="dfd-blog-title widget-title" style=""><a  title="<span class=&quot;mnp-unread&quot;><span class=&quot;mnp-text mnp-text-dfd-ronneby_child&quot;>New</span><span class=&quot;mnp-title-text&quot;>Trascrizione del preliminare: ecco tutti i vantaggi</span></span>" data-cmp-ab="2">&lt;span class="mnp-unread"&gt;&lt;span class="mnp-text mnp-text-dfd-ronneby_child"&gt;New&lt;/span&gt;&lt;span class="mnp-title-text"&gt;Trascrizione del preliminare: ecco tutti i vantaggi&lt;/span&gt;&lt;/span&gt;</a></div>

    1 Error JS in Console

    mark-new-posts.js?ver=6.4.3:12 Uncaught TypeError: Cannot read properties of undefined (reading 'outerHTML')
        at HTMLDocument.<anonymous> (mark-new-posts.js?ver=6.4.3:12:28)
    (anonymous) @ mark-new-posts.js?ver=6.4.3:12

    Now, in Italy we say “it’s a bloodbath”. I have no idea how it can be solved, the problems seem many and different, but I thank you so much for your support.

    Thread Starter Redyan

    (@redyan)

    Thank you so much for the quick response. I’m using Ronneby (DFDevelopment) in child mode.

    This is the result of the inspect where I see the double title:

    <div class="entry-thumb">
        <img src="https://www.mydomain.com/wp-content/uploads/2024/01/cf-trascrizione-preliminare-900x600.jpg" width="1920" height="1080" alt="<span class=" mnp-unread"="" data-cmp-ab="2" data-cmp-info="10"><span class="mnp-text mnp-text-dfd-ronneby_child">New</span><span class="mnp-title-text">Trascrizione del preliminare: ecco tutti i vantaggi</span>"/&gt;
    </div>

    in addition to seeing the title twice from what I see there is a “/&gt” character at the end of the code which is injected into the “ALT” of the image (Is it correct that the “ALT” of the images is used?).

    Let me know if I can help you in any other way. Thank you very much!

    Thread Starter Redyan

    (@redyan)

    Deactivated and reactivated the plugin and SBAAMMM fatal error 500. I think I’ll have to give up this nice plugin.

    Thread Starter Redyan

    (@redyan)

    Updates for the benefit of all
    Yesterday I carried out the following hosting activities:

    • Deleted and regenerated via permalinks .htaccess file
    • Restored file permissions of the entire root via raw FTP Command chmod
    • Clean the CDN cache
    • Deactivated, uninstalled, deleted and installed a fresh version of Holler Box

    Unfortunately I still have the same, identical mistake. I am disheartened.

    Thread Starter Redyan

    (@redyan)

    Hi,
    I have opened a support ticket to OVH Hosting. They replied that on the hosting side there are no problems related to services or permissions (but on this answer I refrain from commenting). In addition, and if it can be useful. I am attaching a further detail relating to the management in edit and creation of a new popup:

    PATCH https://www.xxxxxx.it/wp-json/hollerbox/popup/10244 403 (Forbidden)
    apiPatch @ popup-builder.min.js?ver=6.0.2:1
    commit @ popup-builder.min.js?ver=6.0.2:306
    (anonymous) @ popup-builder.min.js?ver=6.0.2:306
    dispatch @ jquery.min.js?ver=3.6.0:2
    v.handle @ jquery.min.js?ver=3.6.0:2
    VM1322:1 Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    Promise.then (async)
    commit @ popup-builder.min.js?ver=6.0.2:306
    (anonymous) @ popup-builder.min.js?ver=6.0.2:306
    dispatch @ jquery.min.js?ver=3.6.0:2
    v.handle @ jquery.min.js?ver=3.6.0:2

    Thanks.

    Thread Starter Redyan

    (@redyan)

    Hi Adrian,
    first of all thank you very much for your intervention, for me it is very precious.

    I believe that rest WordPress REST API is enabled; the health check page itself returns every single result without any problems. I also checked the standard URLs

    wp-json/
    wp-json/wp/v2/pages
    wp-json/wp/v2/posts

    and via browser they respond without any problem. In addition, I have not installed any cache plugins or firewall plugins.

    I’m really going crazy figuring out how to fix it, I’m even thinking about opening a support ticket to OVH Hosting.

    Thanks again for everything

    You can try using CSS

    .mailpoet_form_close_icon {
        cursor: pointer;
        display: block;
        margin: 0 0 0 auto;
        position: absolute;
        right: 4px;
        top: 4px;
        z-index: 100002;
        width: 30px;
        height: 30px;
    }
Viewing 15 replies - 1 through 15 (of 39 total)