[Resolved] Off canvas panel not showing up

Home Forums Support [Resolved] Off canvas panel not showing up

Home Forums Support Off canvas panel not showing up

  • This topic has 26 replies, 4 voices, and was last updated 1 year ago by Fernando.
Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • #2301051
    Antonio

    Hello,
    button to open the offcanvas panel is not showing up on the site (still, I can see the id=”generate-slideout-menu” element in the html code).

    The site is actually running on a local machine. Please let me know how to get support on this.

    Thank you

    #2301065
    Leo
    Staff
    Customer Support

    Hi there,

    We have not had any other reports on this so it’s not possible to debug without seeing the issue live.

    Have you tried #1 here?
    https://docs.generatepress.com/article/debugging-tips/

    #2302212
    Antonio

    Hello,
    I deactivated all plugins, except GP Premium, and enabled Debug.

    I get this error on frontend:

    Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in C:\xampp\htdocs\grani\wp-includes\functions.wp-styles.php on line 90

    And this error on backend:

    null to parameter #1 ($string) of type string is deprecated in C:\xampp\htdocs\grani\wp-includes\formatting.php on line 2772

    Active theme is GeneratePress Child (the one available on your website).

    WP version is 6.0.1. PHP Version: 8.1.6

    Thank you

    #2302281
    Leo
    Staff
    Customer Support

    Does the issue occur if you activate the parent theme?

    #2302313
    Antonio

    Yes, same both on frontend and backend.
    Thank you

    #2302318
    Leo
    Staff
    Customer Support

    Are you able to start a staging site for us to take a look from the backend?

    We have not had any other reports on this and are unable to replicate the issue.

    Thanks!

    #2302333
    Antonio

    Unfortunately I don’t have an hosting for the moment. I can send you a backup of the site.
    Let me know.

    #2302345
    Leo
    Staff
    Customer Support

    Can we revisit the issue once you have a hosting set up?

    Thanks.

    #2302351
    Antonio

    Ok, let’s try.

    #2329722
    Antonio

    Hello,
    site is online now.

    Please check.
    Thank you

    #2329742
    Leo
    Staff
    Customer Support

    Can you disable this element for now?
    https://www.screencast.com/t/qPcwROwO

    #2329755
    Antonio

    Done. I can see the menu button now.

    But still I need to keep that element. What do you suggest to do?
    Thank you

    #2329825
    Leo
    Staff
    Customer Support

    What is the desired header layout you are trying to achieve?

    Do you want the primary navigation showing?

    Using the Site Header element replaces the entire site header which is currently where the navigation is located.

    #2330201
    Antonio

    Hello,
    I want to open the full screen menu when clicking on the symbol indicated here: https://prnt.sc/67o2q3XgoTo_

    Thank you

    #2330215
    Fernando
    Customer Support

    Hi Antonio,

    Activate the Off canvas menu on Mobile.

    Then, add this snippet:

    add_filter( 'generate_svg_icon', function( $output, $icon ) {
        if ( 'menu-bars' === $icon ) {
            $svg = 'add your <svg>...</svg> here';
    
            return sprintf(
                '<span class="gp-icon %1$s">
                    %2$s
                </span>',
                $icon,
                $svg
            );
        }
    
        return $output;
    }, 15, 2 );

    Adding PHP reference: https://docs.generatepress.com/article/adding-php/#code-snippets

    Replace add your <svg>...</svg> here with your SVG code.

Viewing 15 posts - 1 through 15 (of 27 total)
  • You must be logged in to reply to this topic.