Forum Replies Created

Viewing 15 replies - 1 through 15 (of 27 total)
  • Thread Starter rrosenthal

    (@rrosenthal)

    Thanks Tobias. You are always so responsive 🙂 I have shared your feedback with the client, re-confirming similar suggestions I previously passed along for editing the file locally and importing the updated file via CSV.

    Thread Starter rrosenthal

    (@rrosenthal)

    Little assistance was provided by the plugin author to this inquiry. After trial and error, it was determined the following code (in lieu of the previously used code) would allow Wordfence scans to complete normally, plus perform the non-worthy login function:

    //Filter for Non-Worthy Logins

    add_action(‘admin_init’, ‘no_mo_dashboard’);
    function no_mo_dashboard() {
    if (current_user_can(‘subscriber’) ) {
    wp_redirect(home_url()); exit;
    }
    }

    Thread Starter rrosenthal

    (@rrosenthal)

    Below is the offending code located in the child theme functions.php. The code redirects non-worthy logins to the home page — and when I delete it — Wordfence scan runs perfectly (when logged in as admin).

    Can you advise a work-around, so I can still use this code and have Wordfence scans worked when logged in as admin?

    //Filter for Non-Worthy Logins

    add_action(‘admin_init’, ‘no_mo_dashboard’);
    function no_mo_dashboard() {
    if (!current_user_can(‘manage_options’) && $_SERVER[‘DOING_AJAX’] != ‘/wp-admin/admin-ajax.php’) {
    wp_redirect(home_url()); exit;
    }
    }

    Thread Starter rrosenthal

    (@rrosenthal)

    I have emailed the diagnostic report. Please let me know your findings.

    Thread Starter rrosenthal

    (@rrosenthal)

    Thanks for your quick reply. I had read the tread you provided before opening a ticket. The issue is the same, but it’s unclear that the circumstances match.

    I would appreciate you supplying the needed is_admin() code change/addition and where to place it. Thanks.

    Thread Starter rrosenthal

    (@rrosenthal)

    When clicking the category tabs in Elastic Grid — I would like the sort animation to behave the same as it does when clicking the sort tabs (date, title, default, etc.) for the Content Popup.

    The Content Popup animation shuffles the elements — so does Blocks Toggle Up/Down. Elastic Grid only has selections for popup, moveup, scaleup, fallperspective, fly, flip, heleix. Can one be added to Elastic Grid that works then same as Content Pop Up and Blocks Toggle Up/Down?

    Apologies for jumping in here, but I too was struggling to resolve looping back to the Ninja form on submit (as if goal was not completed).

    The plugin author’s recommended steps worked for me — with the key being — adding a success message to the Ninja form with the [complete_goal NNN] shortcode in the text area.

    Prior to adding the success message with shortcode, I only had a redirect message pointing to the protected page, so the goal was never recognized as completed, thus the loop. Also, I had incorrectly placed the [complete_goal NNN] shortcode on the protected page. It’s not needed there — only in the success message.

    Hope that helps 🙂

    • This reply was modified 6 years, 8 months ago by rrosenthal.
    • This reply was modified 6 years, 8 months ago by rrosenthal.
    Thread Starter rrosenthal

    (@rrosenthal)

    The URL appears to be in a section of the database with many links … some related to WP, others about news seemingly unrelated to WP. Almost appears like an rss feed.

    Hey Tom, for addition to your log.

    I recently launched greyson.com on WP 4.5 with Divi 2.6.4.1 and ran into this issue, which the css snippet above patched.

    Oddly, the same version of WP and Divi did not experience the issue in development — only happened when moving to production — both hosting environments at GoDaddy.

    Any thoughts for Elegant Themes and I’ll pass them along.

    Thanks for the great plugin and support.

    Thread Starter rrosenthal

    (@rrosenthal)

    That does it Mike. Thanks so much.

    I am not a PHP coder, but know just enough to be dangerous. I had actually tried the return $rates; in previous attempts, but since the conditional logic wasn’t working, I couldn’t tell if the return $rates; was either.

    For anyone else seeking a conditional overrride to flat rate shipping, where a guest shopper and a cart value of at least $50 gets free shipping, the following should work:

    // Free retail shipping

    function adjust_shipping_rate( $rates ) {

    if ( is_user_logged_in() ) {
    return $rates;
    } else {

    if ( WC()->cart->subtotal_ex_tax < 50 ) {
    return $rates;
    } else {

    // Loop through each rate
    foreach ( $rates as $rate ) {

    // Store the previous cost in $cost
    $cost = $rate->cost;

    // Adjust the cost as needed
    $rate->cost = 0;

    }

    return $rates;

    }}}
    add_filter( ‘woocommerce_package_rates’, ‘adjust_shipping_rate’, 50, 1 );

    Thread Starter rrosenthal

    (@rrosenthal)

    Thanks Mike Jolley, the change has me a step closer. The remaining issue is that I need the function to default to flat rate shipping (already setup in WC) when the conditions are not met. In other words, either of these fail (below), then flat rate shipping applies:

    if ( is_user_logged_in() ) {
    return;
    } else {

    if ( WC()->cart->subtotal_ex_tax < 50 ) {
    return;

    I think what’s happening is that when either of the above fails, WC doesn’t know what shipping to apply — and this message displays:

    “Please continue to the checkout and enter your full address to see if there are any available shipping methods.

    Thread Starter rrosenthal

    (@rrosenthal)

    No reason to doubt this possibility of theme and/or plugin conflicts. Deadline, however, prevents me from testing the possibility right now.

    Instead, I have created a css work-around that builds a <display: none;> trap and .showhiddenclass class with <display: block;>.

    When calling #BOOKINGFORM from my event page, I precede it with <div class=”showhiddenform”> — viola. Here’s the css that did thhe trick

    .single-event h2 { display: none; /* hides H2 from plugin */ }
    .single-event .em-booking { display: none; /* hides Booking Form from plugin */ }
    .showhiddenblock .em-booking { display: block; /* displays Booking Form on Event page */ }

    Thread Starter rrosenthal

    (@rrosenthal)

    If it’s a theme or plugin conflict, then it exists on both the current and new (test) sites, each with their own themes and plugin configs. I’ve tested removing the code below on both without success:

    {has_bookings}
    <h3>Bookings</h3>
    #_BOOKINGFORM
    {/has_bookings}

    One thing I noticed is that the EM plugin is pushing <h2>Booking</h2> to my event page not <h3> as above, so pretty sure none of the code in the Single event page format is being used.

    Can you advise which EM php file generates the single event page, and we can try coding it out?

    Thread Starter rrosenthal

    (@rrosenthal)

    Thanks for your quick reply Angelo … much appreciated.

    I assume you’re suggesting to remove the following from the Single event page format:

    {has_bookings}
    <h3>Bookings</h3>
    #_BOOKINGFORM
    {/has_bookings}

    I’ve tried this, but still get 2 booking forms. Is there a different change you’re suggesting — or a different option?

    Thread Starter rrosenthal

    (@rrosenthal)

    Hey Tom, as always, thanks for your reply. I should have updated my post over the weekend — after adding the css below to custom styling. It seems to work, but open to your better suggestion:

    @media all and (max-width: $responsive_breakpoint) {
    #mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item > a.mega-menu-link {
    line-height: 2em;
    }
    }

Viewing 15 replies - 1 through 15 (of 27 total)