• Resolved rashidahb

    (@rashidahb)


    Hello!

    Could you please advise me on:

    1) how to prevent the MC4WP top bar from removing the menu bar function on my mobile site? I can’t click on any of the tabs in the menu. This doesn’t happen on my desktop site strangely.

    2) whether it would be possible to use Code Snippets to add your code? You mention on your site that the code for adding an additional field to the top bar menu needs to be added directly to your theme’s functions.php file. I wanted to avoid editing my theme’s code just in case I mess something up.

    I’m trying to add:

    add_action( ‘mctb_before_submit_button to mctb_before_email_field’, function() {
    echo ‘<input type=”text” name=”NAME” placeholder=”Your name” />’;
    });

    add_filter( ‘mctb_data’, function( $vars ) {
    $vars[‘NAME’] = ( isset( $_POST[‘NAME’] ) ) ? sanitize_text_field( $_POST[‘NAME’] ) : ”;
    return $vars;
    });

    to Code Snippet but it’s not working.

    Many thanks,

    Rashidah

    • This topic was modified 5 years, 4 months ago by rashidahb.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey @rashidahb,

    Thanks for reaching out to us.

    There is another way to add code to your website without modifying your theme. This requires another plugin. You can learn more about it at https://www.mc4wp.com/kb/adding-code-to-wordpress-site/.

    Regarding the issue on your mobile version, it’s possible due to the z-index property in the CSS of your theme, the menu bar is not accessible. The simplest way around this would be to place the topbar at the bottom of your website.

Viewing 1 replies (of 1 total)

The topic ‘Top Bar Issues’ is closed to new replies.