• I’m logged in SFTP to my WordPress site and I can’t find the menu buttons that was created in the Appearance > Menus section. I want to edit the code in the menu buttons so I can enter Google Analytic on click code around the menu buttons.

    I’ve searched all over the wp-admin and wp-content folders but I can’t seem to find the php file with the menu buttons/text I created in the Theme > Appearance > Menus area.

    Anyone know where this file is located?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The file you modified would in in your theme’s directory in wp-content/themes/yourtheme

    Thread Starter syypher

    (@syypher)

    Hmm… I’ve searched through those .php files and don’t see any of the menu items I created in the Appearance > Menus section of the theme.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    menus are stored in the database (in wp_posts), not in PHP files.

    Thread Starter syypher

    (@syypher)

    Thanks for all your help. I’m trying to find the wp_posts location.

    Thread Starter syypher

    (@syypher)

    I can’t find the wp_posts database file.

    Also, if it’s a database file, how will I enter the “onclick” meta tags to be able to track the button clicks for those menu buttons? That is the end game goal of why I need those button locations.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It’s not a file — it’s a TABLE in your MySQL database. There may be a plugin to add on-click events to menus or you could do it via one of the APIs that allow you to edit menu items.

    Thread Starter syypher

    (@syypher)

    Thank you for your support Steve. The plugin I tried out only works for custom links and the clients menus are setup from pages on the left menu.

    Appearance > Menu > Page > Add to Menu

    Any other advice on how I can get the on click tracking setup for these menu buttons? I can’t find any other plugins that can do this.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How do I edit the code of the WP Appearance Menu? (SFTP)’ is closed to new replies.