Be Relative WordPress Plugin for BeTheme

A simple little plugin that can be used while building out a site using BeTheme to store relative paths vs absolute in the db using BeTheme's upload dialog.

Can be deactivated when done or left active, only loads when using betheme options or muffin page builder on the back end.  Have fun!

image


*the usual disclaimers apply, you and you alone are responsible for you website.  While this plugin makes no changes to your website's database or theme files and simply changes a small javascript function I have to put this in here but seriously, this plugin is uber safe.

Comments

  • Are there any settings to change or does it do it on the background?
  • edited February 2016
    Yep, all in the background.  Just activate the plugin and go change an image in betheme options or a page's muffin builder and you'll see a relative file path returned.  Disable the plugin and do the same thing and its back to an absolute path.  That's all the plugin does.
  • Thanks so much! I used your old approach-- can you give me advice on how to 'reverse' what I previously did to use then use plugin?
  • edited July 2016
    Just comment out anything custom in your functions.php specific to overriding the betheme field_upload.js file then simply upload and activate the be-relative plugin.

    The plugin basically does the same thing as the previous method except for the added convenience of portability and being able to disable/enable as you wish.
  • Great solution! 
    Does this change URL to relative in the live website? My concern is that the use of relative links would negatively affect SEO.

    Thanks!
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.