Forum Replies Created

Viewing 30 posts - 1 through 30 (of 36 total)
  • Author
    Posts
  • in reply to: Move GDPR bar into header or footer #1033386

    I managed to make a custom bar below the footer that will collapse. The problem is that I have to manually detect the “aviaCookieConsent” cookie and I haven’t been able to get that to work.

    I have two functions in functions.php: myFunction() and myFunction2(). myFunction() works and hides the DIV, but I can’t get myFunction2() to run on page load to evaluate if the cookie is present on page load.

    CODE BLOCK ON PAGE:

    
    <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
    #myDIV {
        width: 100%;
        padding: 3px 0;
        text-align: center;
        background-color: #162946;
        margin-top: 10px;
    }
    </style>
    </head>
    <body onload="myFunction2()">
    
    <p>Click the "Try it" button to toggle between hiding and showing the DIV element:</p>
    
    <button onclick="myFunction()">Try it</button>
    
    <div id="myDIV">
    <a class="avia-button avia-cookie-consent-button  (Purchase code hidden if logged out)  avia-cookie-close-bar" data-contents="b35d8be8d2946ee5599f0c85b5cfb027" href="#" onclick="myFunction()">OK</a>
    </div>
    
    </body>
    

    CODE IN FUNCTIONS.PHP

    
    function custom_script_name(){
    ?>
    <script>
    function myFunction() {
        var x = document.getElementById("myDIV");
        if (x.style.display === "none") {
            x.style.display = "block";
        } else {
            x.style.display = "none";
        }
    }
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script_name');
    
    // End custom script in footer
    
    // I added this!
    //-------------------------------
    // Custom script in footer 
    // Detect cookie to toggle GDPR bar
    //-------------------------------
    
    function custom_script_name_2(){
    ?>
    <script>
    function myFunction2() {
        var x = document.getElementById("myDIV");
        if (!isset($_COOKIE['aviaCookieConsent'])) {
            x.style.display = "block";
        } else {
            x.style.display = "none";
        }
    }
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script_name_2');
    
    in reply to: Buttons in Footer #1028358

    Hi, I appear to have resolved the primary issue.

    Thanks!

    in reply to: Buttons in Footer #1028263

    CSS (Quick CSS):

    #socket {
    border: none;
    }

    #socket .container {
    padding: 0;
    }

    #socket .copyright {
    width: 100%;
    text-align: center;
    }

    .procharter-navbar {
    display: table;
    width: 100%;
    text-align: center;
    margin: 0;
    }

    .procharter-navbar li {
    display: table-cell;
    width: 25%;
    }

    #socket .avia-button.avia-size-large {
    font-size: 16px;
    border-radius: 0px;
    margin: 0;
    }

    #socket .btn-custom-width {
    display: block!important;
    margin-right: 1px;
    margin-left: 1px;
    }

    #socket .btn-custom-width .avia-button {
    width: 100%;
    }

    HTML (Footer Copyright)

    
    <ul class="procharter-navbar">
        <li>
            [av_button label=' ENQUIRE NOW' link='/aviation-service-quote/' link_target='' size='large' position='' icon_select='yes' icon='ue8b6' font='entypo-fontello' color='theme-color' custom_bg='#444444' custom_font='#ffffff' custom_class='btn-custom-width' admin_preview_bg='']
        </li>
        <li>
            [av_button label=' EMAIL US' link='mailto: (Email address hidden if logged out) ' link_target='' size='large' position='' icon_select='yes' icon='ue805' font='entypo-fontello' color='custom' custom_bg='#144566' custom_font='#ffffff' av-mini-hide='aviaTBaviaTBav-mini-hide' av_uid='' custom_class='btn-custom-width' admin_preview_bg='']
        </li>
        <li>
            [av_button label=' CONTACT US' link='/about/contact/' link_target='' size='large' position='' icon_select='yes' icon='ue854' font='entypo-fontello' color='custom' custom_bg='#144566' custom_font='#ffffff' av-mini-hide='aviaTBaviaTBav-mini-hide' av_uid='' custom_class='btn-custom-width' admin_preview_bg='']
        </li>
        <li>
            [av_button label=' CALLBACK' link='/procharter-callback/' link_target='' size='large' position='' icon_select='yes' icon='ue854' font='entypo-fontello' color='custom' custom_bg='#144566' custom_font='#ffffff' av-mini-hide='aviaTBaviaTBav-mini-hide' av_uid='' custom_class='btn-custom-width' admin_preview_bg='']
        </li>
        
    </ul>
    

    Ok, I figured out what was going on. It was having the Blog page in Visual vs. Text.

    I’m just going to use the standard Enfold table instead.

    Thanks!

    in reply to: Socket Height with Avia Button #1025332

    Thank You!

    in reply to: Socket Height with Avia Button #1025322

    What is I want to get rid of the footer socket border?

    in reply to: Socket Height with Avia Button #1025317

    See footer socket…

    in reply to: Prival Policy – Cookie Consent Message and button #961816

    Does the Enfold version disable/enable the actual cookies? It doesn’t appear to do anything when the buttons are switched.

    This is the same for a lot of the other GDPR plugins. A lot of them have all the options but YOU have to program them to disable the cookies. The Enfold solution seems to be the same.

    Also, for the cookies to be disabled/enabled after the the user selects what they want, wouldn’t the page have to reload to active/deactivate the cookies? Enfold does nothing when the dialog box is closed.

    wouldn’t the page have to reload for them to take effect? I tried reloading and the cookies are still there.

    in reply to: Privacy Policy Options #961799

    Hi,

    I used the buttons to disable all of the cookie types. Does not seem to work. No cookies are disabled.

    in reply to: Privacy Policy Options #961795

    Hi,

    1. Do the button actually disable/enable the cookies?

    2. If the buttons do disable/enable the cookies, shouldn’t that require a page reload?

    Hi, I discover the problem. Under performance I have to allow “Always Load All Elements”

    Can you change that requirement so we can choose the option to only load what is needed?

    Same issue!

    @fromcouch

    After extensive testing it works for us (using the testing function provided in Google Webmaster).

    If it doesn’t work for you, it suggests there may be some other variables involved.

    For example, how are these parameters handle in your Google webmaster account? Do you have a child theme?

    In any case, this solution may help some people in the interim until a permanent solution is found.

    Hi,

    Add this line in your robot.txt

    Disallow: /*?s=

    Hi Havi,

    I just used Fetch as Google in Google Webmaster (Console) and none of my page redirects are being blocked- all can be indexed.

    Only URLs with “redirect_to” are being blocked and those don’t seem to have anything to do with 300 level redirects. I assume it’s something being generated by Enfold or another plugin. But it’s definitely not blocking any page redirects that I have setup.

    Hi Havi,

    I’m simply giving you an example of the syntax that works. Each of these URL parameters was causing Soft 404 errors and these commands stopped it. You also need to make sure your robot.txt is accessible. You can test it in Google Webmaster (Console) for your preferred domain. My preferred domain format is https://mydomain.com (ssl with no www).

    I’m not sure the “redirect_to” is what you think it is. It’s a URL parameter not a directive. It has nothing to do with 301 or any other 3xx directive. I have a dozen redirects setup and none of those show up in the Soft 404 errors shown in Google Webmaster. “redirect_to” examples URLs I’m seeing in Google Webmaster seem to have something to do with the wp-login.php and certainly should not be crawled.

    This definitely works… Is Google Webmaster (Console) setup to “Let Googlebot decide” for “s”?
    Disallow: /*?s=

    Example URLs that show up for “redirect_to”
    wp-login.php?redirect_to=https%3A%2F%2Fmydomain.com% (Purchase code hidden if logged out) %2Fimage-2v2%2F

    WordFence this a commonly used security plugin and is not part of Enfold.

    Disallow: /*?wordfence_logHuman=
    Disallow: /*?s=
    Disallow: /*?redirect_to=

    Hi Havi,

    The solution is to add these lines into your Robot text. I have not had any Soft 404 errors in 3 months.

    Disallow: /*?wordfence_logHuman=
    Disallow: /*?s=
    Disallow: /*?redirect_to=

    in reply to: Mobile Menu on the home page #794839

    I believe a lot of people are having this problem but they simply haven’t noticed.

    There is clearly a conflict between the slider and Enfold.

    I used the exact code provided and it fixed the issue. Note there are two code segments.

    /* Mobile Menu Fix – Homepage – Limit Scroll Area */

    .html_stretched #wrap_all {
       overflow: hidden!important;
    }

    /* Mobile Menu Fix – Homepage – Remove Highlighting */

    #mobile-advanced li>a:hover {
         background-color: #000;
        color: #aaaaaa;
    }
    #mobile-advanced a:hover:before, #mobile-advanced span:hover a:before {
        color: #cc3333;
    }

    Ok, Thanks!

    Hi Andy,

    In a previous thread you said…

    Most people want their search results appearing in Google

    (Purchase code hidden if logged out) -errors/#post-789698″> (Purchase code hidden if logged out) -errors

    I still don’t understand this claim. Why would a URL that causes a Soft 404 error be beneficial?

    Every error created by Enfold’s search box contains empty searches… that go to an error page or to the same page (duplicate content)?
    /my-sample-url/?s=

    in reply to: Search Icon causes Soft 404 Errors #789377

    Hi Andy and Basilis,

    I don’t understand the response to…

    href=”?s=” data-avia-search-tooltip

    it’s not a theme related question – Andy

    Enfold is causing soft 404 errors. How is it not a theme related question? My non-Enfold WP websites don’t produce this error so how is this a general WP Support issue?

    get their search results to google – Basilis

    This makes no sense. As CompleteWebResources said, these error pages are not indexed. How does this help?

    You either need to explain how this Enfold feature is beneficial in Google Webmaster / Search / Duplicate Content or explain how to eliminate this error.

    in reply to: Mobile Menu on the home page #774926

    Hi Victoria,

    I applied your fix today. It now scrolls and stops at the end of the menu but its behavior is still broken on the homepage.

    Please compare the mobile menu’s behavior on the Homepage to its behavior on any other page, such as, the About page. You’ll notice that when you scroll the mobile menu on the Homepage the menu items are inadvertently highlighted as you scroll. On all other pages this does not happen – this is the default Enfold behavior – when you scroll no items should be highlighted.

    Why is the mobile menu only broken on the Homepage? What is causing this.

    All other pages work normally with or without your fix and all of the other pages also behave normally without Nikko’s fix; it was Nikko’s fix that broken all of the other pages which had been working normally. The only problem we are attempting to solve is on the Homepage.

    in reply to: Mobile Menu on the home page #773360

    Hi DEVGEN,

    I just took a look at your website. Yep, I have exact same problem. The only difference between my menu and yours is that my menu is full expanded when opened, where yours is collapsed when opened . When your menu is expanded to show the sub-menus, it behaves just like mine – it does not scroll.

    I just removed Nikko’s fix. Try out my homepage menu, it’s the same problem.

    Note: I’m using Cloudflare. I just cleared the cache. Are you on iPhone or Android?

    in reply to: Mobile Menu on the home page #772722

    Victoria,

    Keep in mind that I have Nikko’s fix (hack) in place on my website, so the Enfold menu is not behaving normally. It’s Nikko’s fix that causes the menus on all of my pages to scroll past the end. Without Nikko’s fix the homepage menu does not scroll at all, as described below, but all of the other pages work just fine and stop at the end.

    Why is the Enfold menu only broken on the Homepage and works just fine on every other page?

    Homepage = Menu does not scroll
    All other pages on my site = Menu scrolls and stops at the end

    Homepage with Nikko’s fix = Menu scrolls and does not stop at the end
    All other pages on my site with Nikko’s fix = Menu scrolls and does not stop at the end

    DEVGEN and I have explained this over and over again, the menu is only broken on the homepage (does not scroll) and Nikko’s fix only complicates the problem by causing all of the pages, to include the homepage, to scroll past the bottom of the menu.

    Remember, I have Nikko’s fix in place right now, so you’re just fixing his hack, not the original problem. Context matters.

    * I bet a lot of other people are having this problem but they haven’t noticed. I didn’t notice until I accidentally came across DEVGEN’s post.

    in reply to: Mobile Menu on the home page #769362

    Victoria,

    I feel like we are going in a circle.

    1. The Mobile Menu on the Homepage does not scroll, it is broken.

    2. Nikko suggested adding this code to fix it but this code causes the mobile menus on ALL pages to scroll past their height.

    .html_stretched #wrap_all {
    height: auto!important;
    }

    3. If I remove the code, we are right back where we started, the Mobile Menu on the Homepage does not scroll, it is broken.

    4. You need to go back and look at DEVGEN’s original post at the top of this page.

    5. DEVGEN and I have the exact same issue. Why are you suggesting a different course of action for each of us?

    in reply to: Mobile Menu on the home page #767854

    Victoria,

    Same here. I updated to Enfold 4.0.4. with the Layer Slider update. The mobile menu is still broken.

    The mobile menu on the homepage does not scroll (tested on the latest version of iOS).

    in reply to: Mobile Menu on the home page #767022

    DEVGEN,

    Ah the plot thickens. I keep getting alerts from WordFence about a “LayerSlider WP” update but I cannot update because the license it tied to Enfold. Maybe Enfold needs to provide the update and maybe, just maybe that will solve the problem.

    “LayerSlider WP” for Enfold is v6.1.6 but the current version is v6.2.0. Maybe that’s the fix.

    Enfold, what’s the word?

    in reply to: Mobile Menu on the home page #766988

    I agree with DEVGEN. I have the exact same issue.

    Nikko’s hack allows the homepage to scroll but then it doesn’t stop scrolling when the end of the end of the menu is reached and that problem is then extended to all of the pages site-wide.

    DEVGEN, Do you have a slider on your homepage? I’m using “LayerSlider WP”.

    in reply to: Mobile Menu on the home page #766958

    Hi Victoria,

    Also, this seems to happen on pages were a slider is used.

    I removed Nikko’s hack. Try the mobile menu on my pages with an iPhone.

    Homepage: Unable to scroll mobile menu.

    Remote Sites: Able to scroll the mobile menu and scrolling stops when the end of the menu is reached.

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