Forum Replies Created

Viewing 30 posts - 1 through 30 (of 84 total)
  • Author
    Posts
  • Anyone?

    HI,

    I’ve installed a file manager plugin, which you can use from WP admin. Will that work?

    Best,

    Ralph

    Has anyone checked my site already?

    Hi Ismael,

    For some reason there has been a slight improvement. Now the cart icon sticks to the header at all times, when there’s a product in the cart. But the cart icon itself states it’s empty, the moment you visit another page after putting a product in the cart. The cart icon’s hover info also shows an empty cart, while it’s not.

    Also, when I leave the product(s) in the cart and open a new browser tab, the cart icon function perfectly… it sticks to the header and it displays the product list on hover and the quantity number on all pages.

    I’ve tried without plugins, except WooCommerce, yet this didn’t solve the issue. So, I’ve made an administrator account for you. Please check the private data box for the logins. I’ve made a database backup, so you can work safely on the website.

    Thanks in advance!

    Best,

    Ralph

    Hi Victoria,

    I’d like to, but I checked the demo again and the shopping cart seems to have the same shopping cart bug… put a product in the cart and the cart icon shows up in the header, go to another page and the cart icon is gone. Only when a new product is put in the cart, the cart icon comes back.

    I’ll try disabling plugins and such, but I think the theme itself is the real cause. Also, it used to worked correctly quite a while ago.

    Is there something else I can try, except disabling plugins?

    Best,

    Ralph

    Hi,

    I was wondering if this issue can be fixed?

    Thanks,

    Ralph

    Hi Victoria,

    Thank you! I just tried the code, but it makes the shopping cart icon visible all the time, even when it’s empty?

    Best,

    Ralph

    Hello?

    Hi Victoria,

    I wanted to, but I just checked the following shop demo: https://kriesi.at/themes/enfold/shop/ And it looks like the demo has similar cart icon issues. If you put an item in the cart (on desktop) and browse to other pages, the cart icon is completely gone on desktop. It only comes back once you’re on the cart page itself. I did not yet test this on mobile.

    Can you confirm the issue with the demo?

    Best,

    Ralph

    Hi Victoria,

    Thanks for your reply! I’ve added the link to private content.

    Best,

    Ralph

    in reply to: XML page 404 displays default sidebar and footer widgets #605104

    Hey,

    It depends… if the theme doesn’t have some kind of fallback like Enfold (Enfold manages to fall back on its dummy widgets), then the theme will simply display no widgets at all. As the Yoast SEO function simply disables ‘widgets_init’ completely.

    Anyway, since the conditions of the Yoast SEO function are already pretty tight (it is executed only when an XML URI actually has the word ‘sitemap’ in it), I figured I’m going to leave things as they are. As I think that writing a function that blocks Yoast SEO’s function when an XML URI is 404ing, won’t have much added value. I mean, when the Yoast SEO sitemap feature works correclty, I think the chances of having a user 404 an XML sitemap URI are really slim.

    Thanks for pointing me in the direction of Yoast SEO! And please, feel free to consider the issue solved.

    Thanks again,

    Ralph

    in reply to: XML page 404 displays default sidebar and footer widgets #603050

    Hi,

    Yoast developer input on the issue:

    A Yoast dev explained that the Yoast SEO function, posted in my previous post, can’t check for a 404 page as the function’s ‘widgets_init’ is executed before the query. Please refer to this GitHub issue thread for more details: https://github.com/Yoast/wordpress-seo/issues/4214

    Possible theme specific solution:

    Would it be possible to have Enfold load any custom widgets, for a 404 page, before the Yoast SEO function has the chance to kill them? Enfold is already able to load its dummy widgets, before Yoast SEO can kill them. Perhaps this can also be done with any custom widgets?

    If not, I’ll try to write a function that forces Enfold to always display custom widgets on a 404 page, instead of its dummy widgets.

    Thanks,

    Ralph

    in reply to: XML page 404 displays default sidebar and footer widgets #602478

    Hi,

    I found out Yoast SEO is 100% to blame here, not Enfold.

    The following Yoast SEO file contains a comment and function which explains everything:

    wordpress-seo\inc\class-sitemaps.php

    Here are the comment and function:

    	/**
    	 * Check the current request URI, if we can determine it's probably an XML sitemap, kill loading the widgets
    	 */
    	public function reduce_query_load() {
    
    		if ( ! isset( $_SERVER['REQUEST_URI'] ) ) {
    			return;
    		}
    
    		$request_uri = $_SERVER['REQUEST_URI'];
    		$extension   = substr( $request_uri, -4 );
    
    		if ( false !== stripos( $request_uri, 'sitemap' ) && ( in_array( $extension, array( '.xml', '.xsl' ) ) ) ) {
    			remove_all_actions( 'widgets_init' );
    		}
    	}

    So, when an XML or XSL URI contains the word ‘sitemap’, the above function kills the (custom) widgets and ultimately forces Enfold to load its default/dummy widgets. Change or remove the word ‘sitemap’ in/from the XML URI and Enfold will show a 404 page with the custom / correct widgets.

    Anyway, I’ll report the issue to Yoast SEO. Hopefully they’ll add a check to the above function, which checks whether the sitemap URI is actually a 404 page or not… before killing all widgets. That should fix the 404 page widgets issue.

    Please consider leaving this topic open, so I can keep you guys posted about any replies from the Yoast SEO devs.

    Thank you,

    Ralph

    in reply to: XML page 404 displays default sidebar and footer widgets #601780

    Hi,

    I thought you might want to know about the following: I just updated to Enfold v3.5.1 and, as you can see via the private links in my previous post, the 404 issue unfortunately persists.

    Are there any updates from your side?

    Best,

    Ralph

    in reply to: XML page 404 displays default sidebar and footer widgets #600300

    Hi Ismael,

    Thanks for your reply.

    To answer your questions:

    Please see the attached links to reproduce the issue. The PHP extension leads to the correct 404 page. The XML extension displays a 404 page, which displays the Pages widget for some reason.

    Re the login details: Is their something specific you’d like to check in the dashboard? If yes, perhaps I can look that up for you myself. As I’ve learned the hard way, to never pass on login details :) Though my test setup uses default settings and Yoast SEO and Akismet are the only plugins within its plugin folder. Would you be able to re-create this setup on a WP test setup of your own?

    Kind regards,

    Ralph

    in reply to: XML page 404 displays default sidebar and footer widgets #598295

    Hi Ismael,

    I guess I’m the one who should apologize, as I got too caught up in my impatient workflow. Which is why I went quiet :)

    To answer your questions:

    • I found the URL because my Yoast SEO XML Sitemap was 404ing;
    • No, no widgets were added to the DE widget area.

    Some more details:

    Just to be sure, I ran a test on my test setup. It’s pretty much default. When only Enfold and Akismet are activated, the 404 page works perfectly fine. Once Yoast SEO comes into action, the XML 404 page gets into trouble. So I can confirm that there’s something about the Yoast SEO and Enfold combination.

    Once Yoast SEO is deactivated, the XML 404 works fine again.

    Here are the “Display Everywhere” widgets:

    • Search
    • Recent Posts
    • Recent Comments
    • Archives
    • Categories
    • Meta

    Do you think it can be fixed via Enfold? Or is it Yoast SEO that needs to be fixed?

    If Yoast SEO needs to be fixed, it’s probably best Kriesi contacts Yoast about the issue. As Kriesi has much more leverage than me.

    Please let me know if you need more info.

    Thanks,

    Ralph

    in reply to: XML page 404 displays default sidebar and footer widgets #596190

    Hey Kriesi Team,

    Can someone please help or at least let me know whether you actually feel like this issue is worth solving or not?

    I understand you guys are very busy, but I feel like I’m pretty much talking to myself here for almost a week now :) While I think that in some cases, like in my case, having the default 404 page and its Page Widgets expose every single page, is not a really good idea.

    Hoping to hear from you!

    Thank you,

    Ralph

    Hey,

    Can someone please have a look at the issue?

    As stated previously: yes, I’m using Yoast SEO. But why does it cause Enfold’s 404 page to display its default widgets, when an URL ends with “.XML”? And is there a fix for this (besides disabling Yoast SEO)?

    Thanks in advance,

    Ralph

    Hello?

    Hey,

    Does anyone know why Yoast SEO might be causing the issue? And whether it can be solved without deactivating Yoast SEO?

    Thanks,

    Ralph

    Yup, I have Yoast SEO activated… do you think this plugin is causing the issue? If yes, can the issue be solved without deactivating Yoast SEO?

    Hi,

    Does anyone know how the solve the 404 page issue described in my previous post?

    Thank you,

    Ralph

    in reply to: Button settings opens table settings? #425376
    Thank you, Ismael :)

    Looking forward to a fixed version of Enfold!

    Kind regards,

    Ralph

    in reply to: Button settings opens table settings? #424577

    Hey Ismael,

    Thank you very much for the temporary fix idea! I didn’t think of that one.

    Re your “updateproof” note: Yes, I did indeed realize it could be a potential cause of problems. Which is why I manually update the child theme’s table.php file after each Enfold update and then remove the +1 again. Which, in itself, makes updating Enfold a bit of a hassle. And, for now, the temp buttons fix requires a manual update of buttons.php as well :)

    To answer your question: I have indeed tried to make the tables scrollable. But since some of my tables are quite large, this makes them very wide, requiring lots of vertical scrolling… which I think isn’t very mobile user-friendly and doesn’t look that good. Which is why I prefer the tables to be responsive :)

    Hopefully Kriesi manages to work something out, which fixes the issues caused by the +1 in tables.php. As I’m sure that the +1 is there for a reason, so removing it doesn’t seem like the best fix.

    Maybe this user’s fix is the correct fix (add an extra +1 instead of removing it): https://kriesi.at/support/topic/bug-table-headers-applied-incorrectly-on-media-query/#post-401260 This user’s fix seems to make sense, as each of the 2 $counter var mentions will now be increased with 1. Perhaps this fix is the key to fixing the responive table issue :)

    Thanks again,

    Ralph

    PS: How can I post those nice code blocks as seen in this post: https://kriesi.at/support/topic/viewing-tables-on-mobile-devices-confusing-order-of-items-displayed/#post-417766

    in reply to: Button settings opens table settings? #423945

    Hi Ismael,

    Thanks for your reply!

    How can I include those nice code blocks in a post?

    Anyway. it’s only a tiny modification to fix the following issue: https://kriesi.at/support/topic/bug-table-headers-applied-incorrectly-on-media-query/#post-423170 It would be great if this issue could be fixed in Enfold’s core code :)

    Here’s the requested Pastebin (I only removed the +1 found at line 349): http://pastebin.com/cZdc3Yy2

    Please Note: The original / unmodified table.php file causes the same Advanced Layout Builder issue, when the file is loaded via the child theme. Suggesting it’s not caused by the table.php file. The latest Enfold version seems to have issues with loading shortcodes via the child theme, as it used to work just fine with previous versions.

    Since I experience this issue on all of my Enfold sites, I believe you should be able to replicate the issue as follows:

    1. Activate the Enfold child theme;
    2. Use this function in your child theme;
    3. Place the original / unmodified table.php in the child theme’s shortcode folder;
    4. Edit a page via the Advanced Layout Builder;
    5. Open the config settings of a button element, within the page content;
    6. Instead of the button config, the table config will pop up.

    Hope this helps.

    Best,

    Ralph

    Just removing the +1 does also work. Change:

    $responsive_style .= ".avia-table-".self::$table_count." td:nth-of-type(".($counter + 1)."):before { content: '".$row['content'][$counter]['content']."'; } ";

    To:

    $responsive_style .= ".avia-table-".self::$table_count." td:nth-of-type(".($counter)."):before { content: '".$row['content'][$counter]['content']."'; } ";

    Several versions ago, the above was actually the original line. But for some reason the +1 was added.

    With each update (for several months now) I’m hoping that Kriesi has removed the +1, because all it seems to be doing is cause a problem with responsive tables. Yet no luck so far.

    Since this forces me to use a custom table.php file (without the +1) within the child theme, a new problem has recently been introduced: https://kriesi.at/support/topic/button-settings-opens-table-settings/

    I hope Kriesi looks into the table code / +1, because it keeps causing problems.

    Anyway, I’ll keep hoping :)

    Best,

    Ralph

    PS: How can I add those nice code blocks to my posts?

    in reply to: Button settings opens table settings? #422966

    Hi Elliott,

    Thanks for your reply!

    After following your advice and further investigation, I managed to track down the root of the problem:

    I use a custom table.php file for the child theme, and it loads via this function: http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    The function used to work fine, but one of the recent Enfold updates must have changed something.

    I did a test loading the original table.php file via the child theme, but this also causes the button settings issue. Suggesting it’s not caused by the code within the custom table.php file.

    Also, changing the priority of the function from 15 to another number, doesn’t work either.

    The only thing that “solves” the button settings issue, is loading the table.php file via the parent theme. Though this isn’t an option for me, as I prefer the customized version to be update-proof.

    It seems that, when using the latest Enfold version, loading shortcode files via a child theme, currently causes advanced layout builder issues. Maybe there’s a path structure in table.php, which stops making sense when it loads via the child theme. Which might cause the table settings to open, when trying to configure a button.

    Do you perhaps know what might be causing this?

    Thank you,

    Ralph

    Hey Josue,

    As per your suggestion, I’ve added the form class to the check. I’ve tested the forms real-time via Google Analytics and the check works like a charm; the tracking code only tracks valid submissions now.

    Thank you very much for your input and patience!

    Kind regards,

    Ralph

    Hey Josue,

    Because of your post, I dropped the hook idea. Then I tried to call the validation function within js/shortcodes.js via functions.php… this resulted in an epic fail. Finally I had a really simple idea, which actually seems to be doing the trick (only track valid form submissions). I simply added the following check:

    if (!$('p').hasClass('error')) {

    So the final tracking code looks as follows:

    $('.avia_ajax_form button[type="submit"]').on('click', function() {
         if (!$('p').hasClass('error')) {
              ga('send', 'event', 'button', 'click', 'button-3');
         }
    });

    So far I’ve only tested it with an ‘alert’ and it seems to be working. Could you please let me know what you think of this approach / the check?

    Kind regards,

    Ralph

    Hey Josue,

    Because of theme updates I prefer not to modify too much of the core code (even though I’m using a child theme). So your input got me thinking: How about hooking the tracking code to function checkElements()? So, basically rewrite the tracking code, in functions.php, and turn it into a hook. Would that be possible?

    If not, I’m going to leave things as they are, as I don’t want to make things overly complex :)

    Kind regards,

    Ralph

Viewing 30 posts - 1 through 30 (of 84 total)