Documentation

Rewrite – Theme

Posted in: Getting Started (3) Plugin Options Explained (17) Actions (6) Filters (10) How To (4)      Options (22)    Rewrite (16)    theme (1)    style (2)  

The plugin Theme section allow to change any url’s related to a theme or a child theme. As default a resource file loaded from the theme folder appear on front side html like this:

<link rel='stylesheet' href='http://-domain-name-/wp-content/themes/Divi/style.css' type='text/css' media='all' />

This is the easiest way to identify a WordPress instance, if there’s a /wp-content/themes/ within links, there must be a WordPress CMS. Through this area, you can easily change theme name and urls, also clean up the default style.css file which contain multiple information regarding theme name, version, author, WordPress compatibility, etc After Theme slug change the urls become something like this:

<link rel='stylesheet' href='http://-domain-name-/my-theme/my-custom-style.css' type='text/css' media='all' />

New Theme Path

Provide the new theme folder name which will apply to all of front side links. This can include any alphanumeric and numeric value. e.g. my_template

New Style File Path

This allow to change the default style.css filename to something else e.g. my-custom-style.css Per this example, on front side the main style link change from /style.css to /my-custom-style.css

Remove description header from Style file

This allow to remove different style meta information. A theme main style file include multiple meta data as follow:

  • Theme Name
  • Theme URI
  • Author
  • Author URI
  • Description
  • Version
  • Text Domain

See a full list of metadata at Theme Development
Those information completely reveal your theme details and WordPress instance. Setting this option to Yes will strip out any details.

Child – New Theme Path

If there is an active theme child, this option is also available. Provide the new child theme folder name which will apply to all of front side links. This can include any alphanumeric and numeric value. e.g. my_child_template Theme Path and Child Theme Path options values can’t be the same.

Child – New Style File Path

This allow to change the default child theme style.css filename to something else e.g. custom-style-file.css

Child – Remove description header from Style file

Similar to Remove description header from Style file this option help to strip out chld theme style metadata.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
  • This hasn’t been working as shown in the demo file. When I save after entering a new path for the Rewrite options it doesn’t reflect this change in the source.

    • nspcode

      Do you use a cache plugin? If so can you clear the content.
      Also try clearing your browser cache too.

      • I figured out why. It’s because I was running an nginx server. Any work around for this? The nginx server is just a vagrant server but my staging and production servers are apache and it works for them. It’s just a minor annoyance but is error prone because some assets are hard coded.

        • nspcode

          At the moment the plugin does not support nginx rewrite, only if you set it as reverse proxy for Apache.

          • Mohamed

            This is too bad. Any plans to support nginx? As you may know, nginx is widely used on many websites now.

          • nspcode

            Nginx support is on out list, however there’s lot’s of development process so it may take a while to complete. At the moment we still working to extend functionality before making it available to other systems.

          • Mohamed

            Thanks for your reply. This is good to know. I look forward to it then. Good luck!

  • sandeep

    i use digital ocean cloud server and its reverse proxy server and it have apache on backend and nginx at front end. so will the plugin be useful for me

    • nspcode

      Yes it should work fine.

  • Kelechi Emmanuel Ndukwe

    I used this plugin, it keeps saying…”Value foreverng set for New Theme Path already in use for another option.
    Value foreverng set for New Style File Path already in use for another option.
    Value ngforever set for Child – New Theme Path already in use for another option.
    Value ngforever set for Child – New Style File Path already in use for another option.” I tried using up 4 different names, but the same info keeps appearing. How can i resolve this please

    • nspcode

      It appear those slugs where already used before, either within same settings page or on another area. Ensure you use unique data.

  • Niranjan Bhat

    Hello
    wp-hide is really a great work. But my logo disappeared after rewriting it. I changed X theme to Genesis framework. Still logo is hided. Can you solve this issue for me?
    Thank you

    • nspcode

      Hello,
      Use the contact form on this site and i’ll help further.

      Thanks

Scroll to top