My philosophy is that if you use a system like WP then you embrace it and do things the WP way. WP has plenty of hooks that let you override functionality and the flexible theme structure gives you almost total control over the output.
So, I’d advise using a WP theme and WP built in menus. Your menu items will link to normal WP pages. The site will work for those without JS.
Use jQuery to put click events onto the menu links which use jQuery AJAX calls to the requested pages. These calls can strip the HTML returned back to a particular element (main
is a good one if the theme uses it).
I haven’t thought through how you’d handle your hashes yet.
Related Posts:
- Is having multiple theme customizers for different pages possible?
- WordPress Ajax always returns a 404 error
- Load custom field value into div with AJAX
- How to use SRCSET with get_the_post_thumbnail()?
- Is the regular ajax request method safe or I should use admin-ajax.php?
- How to display recent posts on home page with custom HTML
- Why is this Ajax not working?
- Converting HTML Template to WordPress Theme
- How to store data from multiple forms using ajax and php
- populate form fields in a loop with ajax
- How to disable controls in theme customizer?
- Syntax error when I try to insert my loop into an unordered list? [closed]
- HTML escaping data with ajax requests
- Is there a hack for using is_page() within the function.php file?
- Using php inside javascript [closed]
- Ajax URLs without #!, how to prevent falling into single.php on load or reload?
- Displaying images outside the content
- custom add note meta box with add button in wordpress
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Display WordPress search results based on the selected Sub-Category
- PHP inside echo HTML
- How do I call a value from the datase using ajax
- How to change PHP variables with AJAX request in WordPress
- How to use wp_ajax_set_post_thumbnail?
- Submit remote form to wordpress REST API and save data to custom post type
- AJAX and custom pages
- Collapsible menu on post sidebar only expands and does not collapse
- Custom theme admin-ajax.php 400 (Bad Request)
- How to send Ajax Call from frontend without using wp_localize_script in Theme
- Add Text Area To Child Theme’s Home Page
- Woocommerce variable products are being added to the card on the homepage (ajax)
- Pass form attributes to another php template in wordpress
- Custom HTML form using PHP – help with ajax/username validation
- Code works on page-example.php by not category-example.php
- How to add thumbnails from recent posts to owl-carousel in wordpress automatically?
- Pass the updated value of aid from form using ajax
- Load Meta box value into div AJAX [duplicate]
- Word press – JSPDF – Sending PDF as attachment from wp_mail – Special characters
- Font Awesome Icons as squares [closed]
- Shortcode content output but not in correct place
- Ajax $wpdb not returning table data
- How to prevent those PHP variables from being cached on WordPress?
- Use ajax from function.php
- Ajax return code 400
- Correct syntax to html php conversion
- How to Fetch values from WP database based on selected option value by onchange using PHP?
- wp_insert_post() is returning the correct post ID, no failure, but the post content does not get updated
- An unwanted inline style is added to my body tag
- How to properly insert a link to a template in WordPress?
- Can’t load WP function into external function
- doing an ajax request always outputs 0
- Custom category code not showing all posts
- Upload Image in a WordPress page using PHP
- Displaying theme options in css
- Show post in slider
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- max_input_vars: how many am I using?
- How to show a dynamic_sidebar if main content content’s height is > a set amount?
- Removing unneccessary p-tags (Not every p)
- Set WordPress Default Template
- How can I hide Home in my menu in a specific page?
- WordPress automatically adding html tag around PHP code
- How to run JS, PHP and etc. inside WP post?
- Missing sidebar parameter “fix” – before_content
- Trying to implement Ajax comments in WordPress, getting WP error
- WooCommerce get_price returning wrong price when used via ajax
- How to test nonce with AJAX – Plugin development
- How Display Posts on category
- Can’t search posts using WP_QUERY inside AJAX Function
- Woocommerce add to cart quantity buttons with AJAX
- How to get the POST TITLE using the POST ID?
- Adding country tags automatically
- write custom woocommerce templates and forms
- Implement toggle switch for theme options in settings API
- Why is the post meta[] empty when I make a call to the wordpress rest api?
- Using a `Template Parts` folder instead of an `Includes` folder in a Custom WordPress Theme
- class click counter save number
- HTML tags in bloginfo description
- Using a variable in is_page(array())
- Trigger popup in a php if/else statement
- Anyway to output the registration form like the login form with wp_login_form()?
- How do I get current page ID in WordPress customizer file?
- Any possible way to make $wpdb->get_results() return anything else than array?
- Customizer: Output default value in Customizer CSS
- How to load a template-part based on a url wildcard?
- ACF page while loop breaks footer while loop
- get post based on category chosen in drop down – The ajax method
- WordPress does not load page.php, return 404.php
- Why is $_REQUEST an empty array in admin-ajax.php?
- Checking for new message using AJAX and PHP. Server overload?
- Getting a specific post values to another div or modal
- How can i upload images in an admin page?
- Where to edit the template that is generating the code for dynamic_sidebar left-sidebar in the Understrap theme? [closed]
- AJAX request status 200 but no actual “response”
- get current custom post ID by WP_Query method
- Add a class to the anchor tag on HTML5 gallery
- Transferring working local PHP site to wordpress – with database (MySQL)
- Multiple WordPress Menus that will only display all pages
- How to make drop down post title
- Ajax not working es expected (Returns 0)