Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Izzy

    (@izzyftm)

    Just installed AMP and set it up. I kept the environment clear of any content… so it’s just the menu item in a div.

    Thread Starter Izzy

    (@izzyftm)

    I’ve added the URL to my profile (so I can remove it later)

    Thread Starter Izzy

    (@izzyftm)

    i have implemented two variations of the above, with no luck.

    add_theme_support(
    	'amp',
    	array(
    		'nav_menu_toggle'   => array(
    			'nav_container_id'           => '_nav_menu-7-8',
    			'nav_container_toggle_class' => 'oxy-nav-menu-open',
    			'menu_button_id'             => '#',
    			'menu_button_toggle_class'   => 'oxy-menu-toggle',
    		),
    	)
    );

    Where # is filled with
    //div[@class="oxy-menu-toggle"]
    //*[@id="_nav_menu-7-8"]/div[1]
    /html/body/header/div/div/div[3]/nav/div[1]

    None of them seem to do the trick.
    Oxygen overrides WordPress’s themes, so it does not have a functions.php so I tried using the code snippets plugin (Run snippets everywhere), and making a plugin with this code in it.
    Neither seem to work.

    I did notice that Oxygen’s toggle changes more than just the ‘_nav_menu-7-8′<nav>, it also adds ‘overflow’ new classes to main HTML and body tags as seen below.
    <html lang="en-US" class="oxy-nav-menu-prevent-overflow">
    <body class="home blog wp-embed-responsive oxygen-body oxy-nav-menu-prevent-overflow">

    • This reply was modified 2 years, 2 months ago by Izzy.
    Thread Starter Izzy

    (@izzyftm)

    Hey there, thank you for the speedy response.
    I actually did look at this, after I posted, but ran into an issue.

    Oxygen does not designate an id for the menu button. It just has a class.
    <div class="oxy-menu-toggle">...

    So I cannot complete the steps required.

    Thread Starter Izzy

    (@izzyftm)

    Forgot, when the meny is exanded nav id looks like this:

    
    <nav id="_nav_menu-7-8" class="oxy-nav-menu oxy-nav-menu-dropdowns oxy-nav-menu-dropdown-arrow oxy-nav-menu-responsive-dropdowns oxy-nav-menu-open">
    
    Thread Starter Izzy

    (@izzyftm)

    That is a relief. Thank you ??

    Thread Starter Izzy

    (@izzyftm)

    Forgive my ignorance, my background is in design… and I am playing ‘catch-up’ for development.

    So would this count as duplicate post meta?
    If a post-type has two custom fields, both with the same field-title and the same content?

Viewing 7 replies - 1 through 7 (of 7 total)