Disable Shadowbox.JS on certain Wordpress themes - wordpress

I am trying to set up two versions to my Wordpress website:
Full website, for computers, and Mobile version, for smartphones.
I achieve this by means of a user-agent detection script included in the header.php of the full theme (path is whatevercorp.net/wordpress/wp-content/themes/moneyblog/mobiledetect.php ). If it detects a mobile browser, then it redirects to the mobile theme. I use the Theme Switcher plugin for this.
if($mobile_browser>0) {
header( 'Location: http://whatevercorp.net/?wptheme=mobiblog' );
("mobiblog" is the name of my mobile theme)
My questions is this: I use Shadowbox for photos in the full version, but I want to prevent loading it altogether as soon as a mobile browser is detected. I don't want users to view photos with shadowbox when on the mobile version. If the plugin is disabled the links work just fine and *whatevercorp.net/photosfromevent/img_001.jpg* is opened no problem.
Ideally I'd like to introduce something in the if statement from mobiledetect.php.
Someone suggested this
add_filter('shadowbox-js', '__return_false');
but it doesn't do the trick.
How can I condition the loading of the Shadowbox plugin? Thanks!

Why are you reposting this so quickly?
Original question: How to manually add Shadowbox.setup() to the footer of your theme?

I'm not, I'd like to know the answers separately! This one, how to disable a plugin from within a PHP, that other one - how to make use of that thing in the Advanced settings in order to achieve my goal. It's true, the goal is the same for both.

Related

Wordpress Display Issues

I am trying to use the widget 'Super Store Finder' with no luck. Well I had some luckas I can get it to work on the page it is supposed to be on, however it shows up above the header on my home page too. Thinking it had something to do with the Goodlayers theme and page builder I am using, I tried building a standalone site with WPBakery and Elementor with less luck. Keep in mind with my first theme, all I had to do was activate the theme and it started showing up. Didn't add it to a page or anything at all. I don't want to get in to the complexities of fixing the plugin. I more or less am interested in a workaround.
I am using all the latest versions of everything btw.
My big question is simply...How can I stop this plugin from showing up on my homepage?
Continuing my search, I came across a plugin called 'freesoil Deactivate Plugins' and you can choose which page you do not want a plugin to show up on. Easy peasy finally....

WP disable plugin on specific page(s)

I would like to know how to disable the Easy-Fancybox plugin from opening the images on a specific page. The images on the page below are instead using a filmstrip lightbox from a purchased plugin called 'Photo Gallery'. I require the Easy-Fancybox plugin elsewhere around the website though.
http://181.224.157.231/~alcappar/collections/summer-2014/
Okay I found another plugin called 'Plugin Organizer' which lets you select an action per plugin. It worked perfectly. I hope this is useful to some other people out there.
https://wordpress.org/plugins/plugin-organizer/
Try this plugin https://wordpress.org/plugins/wp-optimize-it/ it will let you disable specific plugins on specific pages

wordpress preview demo plugin

I've started seeing on wordpress theme sites with the ability to preview a theme on the same page, I've tried searching for the plugin but I can't find any - I'm assuming its an iframe but I could be mistaken. Has anyone come across this before and whats the solution as I want to be able to create this for myself?
many thanks
Check out the Theme Test Drive plugin.
Once activated, you should be able to combine the preview URLs (http://www.myblog.com/?theme=Default) with iframes and/or whatever lightbox solution you prefer.

Wordpress Galleries Crash

I am using TN3Gallery on my wordpress. As soon as I enable Nivo Slider TN3Gallery stops working. I couldn't find any solution for this problem. I don't think wordpress lets you disable specific plugins on a page basis. How can I fix this issue ?
TN3Gallery Page; http://goo.gl/UZpza
You need to use wordpress Conditional Tags in your theme if you want to disable plugin at certain pages/posts. following link may be helpful to you -
Link For Conditional tags
Discussion Board Link
Simple Example

Wordpress tiny mce editor does not show exact in the front end

I recently started developing websites on wordpress. I have this problem with tinymce editor. When i write post and format content it looks how I want in it. But when I publish post and check that it looks really crappy.Then I called the stylesheet of tinymce editor on everypage of website. I must say there is change but it still looks bad.
How can I get content in exact formatted way as I see in the tinyMCE?
Thanks,
kiran
On the frontend the styles from your theme will be taking precedence over the layout and sizing of content.
In the administration section it will be using a default TinyMCE editor css file. This allows for Wordpress to easily support a variety of themes without making many changes.
So that leaves you with the potential inconsistency, which you have identified here.
Either you work with the WYSIWYG editor giving you an approximation or you could add the relevant styles from your theme to the editors CSS. This can be done using add_editor_style() DOCs.
Use this WordPress plugin to solve your problem.
Specific CSS/JS for Posts and Pages

Resources