Edit your single.php or single-post.php template, depending on which one is present and in use with your theme.
The JS file should be registered and conditionally enqueued when the template is loaded. This allows for dependency management and lots of other easy management actions.
Another way to consider is make your menu an actual WordPress menu or a widget and register a sidebar in your single.php template. Either way, you have the benefit of managing the content via the CMS as intended.
EDIT: your theme is likely making use of body classes which makes it very easy to know which template you need to edit. Look at the body tag and inspect the classes there.
Related Posts:
- How can I hook into the post editor title field in order to change the HTML?
- How to hook update_post_meta and delete_post_meta?
- Are there any hooks that alter the 404 logic?
- WooCommerce: change display order of product short description and price [closed]
- Add_action to wp_head via functions.php
- How to get the custom header image’s alt text?
- Is there a WordPress core & plugins update action hook?
- trigger save_post event programmatically
- Implementing advanced add_* function wrappers
- My add_action (wp_footer, ‘method’) is not calling?
- Hook into wp_head(); in a plugin
- is it possible to get the hook name in add_action?
- What hook is executed just after wp_query has been executed?
- How to properly test a method that is called by an action hook
- How can I do customizations on login, registration and password recovery forms?
- WordPress v5.0.3 Gutenberg & JS error “Uncaught SyntaxError: missing ) after argument list”
- Can’t get ID of post that relates to the comment
- Custom form action hook
- How to send an automated user ‘inactivity’ email?
- How do I successfully create a hook for an email override?
- WooCommerce – Overwrite action hook [closed]
- Admin Hook at the Login Page
- Which Hook? Hide attachments from specific post types in media library
- Cast string to number
- Custom action on login and “remember me”
- How to debug user_register hook
- Storing state between hook functions
- How to hook into Add New Member in BuddyPress
- What’s the difference between “wp” and “wp_loaded”?
- WordPress capabilities and restricted categories access
- Hook when new CPT published AND postmeta inserted
- Query categories that have a description
- How to use custom form on add_meta_boxes callback
- Is it possible to switch Gutenberg’s editor styles when document settings change?
- schedule event in class oriented plugin
- Action hook for custom tax edit
- wp cron job fires at every second or so, if callback is wrapped with DOING_CRON check it never fires at all
- How can I find the hook I need to rewrite a function?
- Show message in media-new.php
- Hooks are not being removed in child theme
- add_action second argument missing
- How to get user meta fields that have just been updated?
- admin_notices action doesn’t trigger within save_post action
- When a plugin gets updated from the repo, does the “activation” hook fire again?
- Convert Gravity Form Entry Date on Export
- Hook Adding content after title
- Fatal error: Call to a member function get_queried_object_id()
- Use an array of page template slugs and $hook
- “admin_enqueue_scripts” hook or $_GET[‘page’]?
- How to add content to suscriptor dashboard frontend?
- Add PHP code to header section from plugin
- How to change a WordPress term’s slug before saving
- dynamic add_action according to child pages (for homepage control)
- Remove action in a parent theme from the child theme
- Remove action within a class in a parent theme’s includes folder from the child theme
- Action hook save_post for newly created posts – $post object data is all empty
- add_filter to the_content from plugin function
- What hook should I use that will fire whenever I open a post for editing in the WP back-end?
- Can not using get_header() cause trouble (later on)?
- What hook to add at start of WordPress load
- Knowing if a post is sticky in the ‘save_post’ action. Where do I have to hook?
- Is there a author_update action?
- How to set Media Box form elements default value?
- How to get product information using hooks?
- Count when a post of a custom post type is deleted and store it in a theme option
- Print additional fields in wp_new_user_notification_email_admin
- Add html tot CPT edit screen – no metabox
- Creating custom post on registration in wordpress?
- Display custom user profile fields in wordpress
- profile_update not supplying old data
- remove_action not working for a function
- Is there no concise way, a library maybe, to help with unhooking class functions and so on?
- Debug a WP install: how to find which functions write post updates during a process (a woocommerce checkout in my case)
- What hook should I use to add post meta data with on update?
- add_image_size not working with after_switch_theme
- wordpress hooks
- Check when a setting has been changed
- Problem with call_user_func_array front end
- How to I prevent WordPress from switching external HTTP links to HTTPS?
- Stylesheet is getting removed/deregistered automatically
- How to override get_avatar() function?
- add extra parameter in default hook in wordpress
- Change user role if it’s orders count more than
- Exclude WooCommerce terminations from YOAST
- set_post_format called after wp_update_post when using bulk edit?
- add hook restricted only to either plugins or themes?
- WordPress HTML Helper
- How to hook watchdog script for existence of a WP page?
- Using actions, hooks and filters in a non-WordPress page
- addaction hook cause redirection problem
- Hook into create_category
- Trouble adding data to options table
- How to hook into publish_posttype?
- $GLOBALS & global doesn’t work [closed]
- How to use the password_reset hook to validate new password and display error
- Hooks not working on live server
- How can I get the ID before after_setup_theme?
- Hook on opening a media/document
- Hooks to trigger a callback when adding, removing, rearranging or updating a widget in the widget area
- Why does before_delete_post run when opening a post in the backend?