Remove jquery UI CDN from Wordpress Admin panel - php

I'm install wordpress on localhost for using offline works.
But I have a problem, on offline mode exist jquery ui cdn from http://code.jquery.com in admin panel (wp-admin).
that causes admin panel loading slowly and try to connect to jquery.com
I want to know, how to remove this CDN from admin panel ??
thanks.

Probably that stylesheet with CDN link was added by the theme or a plugin that you are using. You need to find it in the code, and replace the CDN link with the location of the local copy of it(hope you've already downloaded it).
For that, you need to figure out exactly where that line is in the code. If its added by the theme, maybe look for the header.php file (if its hardcoded) or maybe look at the functions.php file. It might be added through the function wp_enqueue_style()
Hope it helps!

Related

Is it possible to use WordPress theme preview as main website source that will work all functions?

I'm new in WordPress
I misunderstand one thing about the theme use in WordPress
For example, I wanna create the as same website as this I purchased this template.
But when I installed the theme in WordPress it shows me the default Index.php file with little info, used my purchased theme
And when I purchased the theme there exist all src files of the above website.
How I can use my purchased src files of website that will work all function for ex: logins with db?
Thanks in advance!!!!
After you purchased the theme, you probably have just installed the theme and haven't created any pages or tweaked any settings. So if you want to get the same look as that of the preview website, you probably have to check whether the developer has provided any dummy data for importing.
Most of the themes listed in ThemeForest would have the option to import dummy data, so that customers would be able to install some pre-made posts, pages, config, etc. This might be there inside the custom settings page(as a single button to download the content) of the theme, or maybe they have provided it in separate XML files for you to import. If the files you have downloaded doesn't have it, make sure you downloaded All files & documentation. Here's a sample screenshot:
My guess is that you might have only downloaded using the Installable WordPress file only option.
If you are still unable to get the dummy data, probably you have to ping the support of that theme asking them to provide the dummy data.

Edit themes from wordpress

I know we are allowed to used the themes from wordpress and edit them in the theme editor.
However, working in the theme editor is really annoying. Does anybody know if there is a way to download an entire theme file from Wordpress, so that I can customize it in the editor on my laptop?
thanks for the help
You can use Download Plugins and Themes from Dashboard plugin. it's provides a "download link" in theme's detail page.
While #mohammad's answer is correct, I find it best not to clutter a site with unnecessary plugins, what works best is if you login to your server via FTP or your host's cPanel and download the files that way. It keeps your Wordpress install clean of anything that won't be used too frequently.
If you have any questions on how to do this, your host will be able to guide you without issue.
There are multiple solutions to this problem, you can change theme files through the FTP/SFTP account using Filezilla. or you can access your CPanel account go to the File manager and access your file easily. Other then that you can clone your website to your laptop through any migratory tool after that you can configure your website to the localhost and just make changes in Theme according to your requirement from the Xamp/Wamp folder at your system.

How can I find the particular php-file of my Wordpress website?

How can I find the particular php-file on my server, if I want to make some changes on my website?
I have a wordpress website and purchased a theme for that. In most cases I am successful with developer tools when I klick on inspect Element. But sometimes not.
Thank you :)
Open your code editor and open the theme folder located in wp-content/themes.
Do a global search for the element you're looking at in the Developer tools.
Please use a child theme for making changes to your existing WordPress theme, ref: https://developer.wordpress.org/themes/advanced-topics/child-themes/

Issues regarding custom theme, plugins not working in Magento

I am using magento custom theme. When I open my product page, while loading the page the default zoom function buttons are visible for a moment. When page load completely the buttons are disappear.
Let us look the images for more info:
Before (while loading)
After page load
Why this happened so? I am installed a new custom theme. This theme not provide any image zoom functionality. I think the zoom buttons are load from frontend\base\default\template\catalog\product\view\media.phtml. Why my site load this page, since I use a custom theme the site should use the theme's media.phtml file. How can I solve this issue?
And when I try to install some product zoom plugins, these are not working in my theme. The plugin files are saved in my default theme directory. And I manually copy the plugin files from default to custom theme directory, but no luck. Please refer the LINK for more details. Is there any way to rectify this?
Please help me ...I am using magento 1.9.0.1
First of all you need to check which package you are using for you theme, you can check if media.phtml is being called from rwd folder.
i.e. /app/design/frontend/rwd/default/template/catalog/product/view
Or you can enable path hints and locate the phtml files, and accordingly that you can put the design files of custom module there.
To turn on template path hints in Magento:
log into the magento back-end admin.
Go to System -> Configuration in the main menu.
Go to Developer on the bottom left under ADVANCED.
Switch to the store view on the top left to your current website or store
view.
or check the below link.
https://support.sweettoothrewards.com/entries/21255937-How-do-I-turn-on-template-path-hints-

How do you get the url of wordpress plugin from template?

I am working for a client right now that is wanting me to author a wordpress plugin for them, and on top of that they want me to integrate it into their template as a feature. However since the url of the location of the plugin could change I want to be able to call the loaded plugin from the template, however I am not finding any good way to do so. I have read over WordPress Codex and not found a function that suits what I need, or I simply don't understand what they are doing. I am not familiar with how WordPress loads and uses plugins. Thanks!
Here's the WP overview on plugins.
In short, plugins are managed by the WP install and once activated automatically load when the pages are called. Plugin files are stored in: wp-content/plugins/ and are stored within each individual WP installation. As long as your client doesn't mess with the wp-content directory structure, your plugin should load if activated in the WP admin console (and it's functional/doesn't break). This is the only way to run plugins through WP as of now (though I don't see this changing).
Wordpress has a built in function to find the path to your plugin, similar to this:
$pluginpath = plugin_dir_url(your_plugin.php);
I believe that is what you are asking, no? Or are you referring to sending a function from the plugin to the template? In that case, you have to use an action hook. Here is the reference: Link

Categories