This has to do with .htaccess rather than wordpress itself.
You could just add a row to your htaccess files.
RewriteRule ^(.+)/theme-(.+)$ $1?themedemo=theme-$2%{query_string}
$1 is argument one, the first appearance of (.+) and is the page name
$2 is the second argument, the second appearnce of (.+) as in the theme name
so if you write:
example.com/about/theme-thesis it should get the content from example.com/about?themedemo=theme-thesis
try it out!
Related Posts:
- How to add CSS class to custom logo?
- theme path in javascript file
- The proper way to include/require PHP files in WordPress
- How to insert a logo in the header?
- Why doesn’t default WordPress page view use force_balance_tags?
- Theme Customizer : how to create multiple-level panel
- Automatic Updates For Private And Commercial Themes?
- What can I hook into after_setup_theme?
- add_image_size is scaling, even though crop is set to true
- How to use bloginfo( ‘template_directory’ ) in array
- Should I update my _s theme?
- Setting a Default ‘Theme Location’ When Creating a Menu
- How to set page template on front using starter content?
- Different Admin Theme – Based on Role?
- Finding Page Template and Displaying Content
- Override Constants in Child theme
- How to correctly add JQuery in a WP theme?
- how to change a theme slug
- Same theme name issue with wordpress repository theme
- Removing feeds from header using a function?
- I want to get the home root path
- How to add code in the content area in a WordPress theme?
- How to add theme support?
- Translation Issue with WordPress Theme Check in comment_form function
- Using esc_url with a hard coded url
- Broken template went invisible
- Storefront child theme not applying parent theme [closed]
- Theme Inspector “X-Ray”
- Acivate all themes multisite wide automatically
- Customize how a WordPress theme looks like in the Theme Selector
- How to set a page as homepage in stead of the newspages?
- how to get the post attachement image in full size?
- Best way to develop a new theme on a live site, with new content? [closed]
- How do I make the most minimal vanilla theme possible with nothing but raw content?
- Can I Set Up Session in WordPress Custom Page
- WordPress Theme Validator?
- Template for landing pages
- Set a featured image as a replacement to the header image
- Is it possible to have a theme that uses only one single page?
- Custom theme: How to call archive-post.php for viewing blog posts
- underscores use of the article element on the page template
- Plugin does not work in custom theme
- html5-reset theme does not show the image [closed]
- Theme Customizer not displaying saved values in wp_head (CSS)
- Adding a gallery to my first theme
- How can I hard code my sidebar?
- What exactly is “wordpress theming”? [closed]
- Thesis -style Navigation
- How can I wrap all blog posts image with
- Issue when posting updates/changes to wordress
- StoreFront WordPress theme: How can i create a new Home page with Custom design same as template [closed]
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- Create theme for mobile phones and tablets only?
- Never actually adding the action? Or do I have to call the action?
- How to hide custom sidebar on mobile
- Theme Checker Text Domain
- Converting a theme to a child theme in a network
- What is the difference between Twenty eleven & roots framework?
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- How to copy page/post from one theme to another?
- Not sure how to debug this npm install error. This is a wordpress theme that comes with a built-in gulp/webpack task automation [closed]
- How to change listing type permlink?
- Adding popup support to the theme
- Calling a WP Plugin Function’s Variable in Theme Template [duplicate]
- Why front-page.php doesn’t show content of file instead shows loop
- Local variable name in setup_postdata()
- Creating a Single Page Theme correctly
- How can I not disable my theme when I want to upload a new version of it?
- Are paginated comments required for publishing Themes?
- Child theme menu not appearing in Twenty Seventeen
- How can I fix my theme header for my CSS stylesheet?
- How do I remove header/page-title image in farvis theme? [closed]
- Is hand coding required at all?
- Avoiding do_shortcode() loops
- Creating a Sub Category Template
- How to link post image to post link?
- Correct was to customise theme using get_theme_mod in scripts
- Custom theme vs theme customization?
- how can I re-utilize and class on a child theme
- On wordpress, how do i require specific dimensions from user uploads only
- WordPress Theme Developments – Start from another theme
- Slider should be display in home template [closed]
- How to figure out which wordpress theme a site was using?
- How to migrate the menu from the site on my own theme in WordPress?
- Incorrect search results in search.php – issue triggered by using `define(‘BodyID’, ‘search’); the_post();` in search.php
- Flexslider not working for my custom theme WordPress
- “No Data Received” error in Chrome every time i try to update the theme functions file
- Redirect to custom login page
- How to close open divs in post loop
- Display Today’s date outside the loop?
- Confused on loading page content
- How to convert that page to a wordpress template? [closed]
- Toolbox theme using printif statement – help needed understanding code block
- php file child theme directory not overriding parent theme php file [duplicate]
- How to Create a Multi Purpose Theme?
- Turning WordPress Into full-featured website?
- Why am I getting posts back when I shouldnt
- Full site editing templates folder vs block-templates
- Export WordPress theme with modifications for other site
- how to combine wordpress and front framework