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]
- start_lvl Ignored in Custom walker_nav_menu
- WordPress Themes and PHP unit
- What exactly does “Posts page” do in WordPress?
- Adding a search form inside a div
- Dynamically change feature image in customiser
- Accessing a random image via ajax
- Making a follow button, Ajax not talking to php
- How to display blog images using wordpress in existing project
- How do I translate this string – PHP syntax question
- WordPress automatically adds tags when pasting code, how to stop it?
- using add_action for a header hook that has an additional parameter
- Slide in Panel WordPress Post
- Woocommerce add to cart quantity buttons with AJAX
- Using a `Template Parts` folder instead of an `Includes` folder in a Custom WordPress Theme
- class click counter save number
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- wordpress count link clicks by ip address
- Using the echo command adds unwanted br tags to source
- How do I add custom bulk actions to multiple custom post types?
- Repeating admin-ajax.php not found error in admin
- Commenting out unwated CSS/scripts in HTML with PHP
- Unset session variable on page reload / setup but exclude AJAX
- Widget back end radio button issue
- Making an AJAX call to refresh a table
- Why is an array created in a function hooked to customize register populated when customizer is loaded but not when the front-end is loaded?
- Calling PHP Scripts in Ajax that are in PHP Snippets
- Removing “Powered by” footer using child theme PHP [closed]
- Allow user to Upload image and manipulate it on the frontend
- Execute Jquery when a specific page in my plugin is loading
- Is it possible to isolate and use WordPress functions outside of wordpress
- security concerns if using html data-* attribute for l10n?
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?
- How do you create a custom category widget that you can style?
- My Custom Post Type AJAX Query is Returning no posts – why?
- Search bar for wp menu
- Executing php on button press
- url not using query string no longer working
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- How to have different headers.php files based on the display page
- If user has clicked link add class and store using PHP/WordPress
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- sessionStorage saves input value in browser but it is not loaded in the form field
- autocomplete in wordpress using ajax with json-data
- Remove item from post_meta array via AJAX
- Use PHP to inject HTML into before page renders?
- CSS loading as empty file in Custom Theme
- wp_send_json erase last value
- How can I customize a WordPress theme before it’s downloaded?
- wordpress ajax pagination
- How to only fetch certain Tag ID’s
- RegExp to EXCLUDE strip HTML (FOR SOMME) comments
- Trying send mail from Theme page
- Pagination for div’s
- 500 (Internal Server Error) of external php file
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- Shortcode working in page.php but not in category.php in wordpress
- How can a ‘scripts’ directory be hooked into wp_head();?
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- WP and Laravel integration (Updated) [closed]
- Correct way to perform a GET to another PHP file hosted on wordpress
- How to create different templates for woocommerce single-product.php?