wordpress-plugin

How to remove wonderplugin.com link from WonderPlugin slider

半城伤御伤魂 提交于 2019-12-07 04:46:51
问题 I am relatively new to the WordPress. I am using free version of the WonderPlugin slider in my site. There is a link coming in the top left corner of the slider showing wonderplugin.com. Is it possible to remove that link from the free version of the WonderPlugin. I am using WordPress 4.0 and WonderPlugin Slider Free Version 2.6 回答1: First of all if you want to use free version of the WondePlugin, you should be fine to show the wonderplugin link on the slider. You can avoid that link by using

WooCommerce custom function for Free Shipping Label

笑着哭i 提交于 2019-12-07 02:15:20
问题 When i put the following into to my functions.php it crashes my entire site. the purpose of this function is to change elseif ( $method->id !== 'free_shipping' ) { $label .= ' (' . __( '**Free**', 'woocommerce' ) . ')'; to this... elseif ( $method->id !== 'free_shipping' ) { $label .= ' (' . __( '**To Be Calculated**', 'woocommerce' ) . ')'; When i change the one word in the original woocommerce/includes/wc-cart-functions.php it works perfectly. I don't want it to be overwritten with an

preg_replace not replacing in a Wordpress plugin

こ雲淡風輕ζ 提交于 2019-12-07 00:36:30
In follow-up to my previous question , I want to replace every instance of an ALL-CAPS * word with a link of the following format: dictionary.com/browse/<TERM> The preg_replace call I am using is this: $content = preg_replace('#[A-Z][A-Z]+#', '<a href="//dictionary.com/browse/$1">$1</a>', $content); Using http://gskinner.com/RegExr , it appears I have my regex correct, and that it should be replacing on each find. Have I done something wrong, either in the preg_replace call, or pehaps in the registration of the plugin/filter to the Wordpress API? Full context of the call: function define

How to force wp_enqueue_style to display CSS at the very bottom of the head tag to override all CSS rules?

旧时模样 提交于 2019-12-07 00:34:57
问题 I am currently studying on how to create Wordpress administration templates via plug-ins, and according to the Wordpress Wiki you can use hooks such as admin_head , wp_admin_css , and/or login_head to manually echo your link html tag: echo "<link rel="stylesheet" type="text/css" href="' . get_option('siteurl') . '/wp-content/plugins/blue-steel/login.css" />'."\n"; The example obviously is A Bad Thing because of the way the link tag is hardcoded inside php logic. The ideal is to use wp_enqueue

Can WordPress handle these functionalities?

假如想象 提交于 2019-12-06 15:35:16
I'm a front-end designer/developer whose weapon of choice for the back-end is WordPress. Up to this point all of my projects involving WordPress were fairly basic and it has handled everything beautifully. I just landed a new client that wants some extra functionality built into his next project and I'm hoping some of you WordPress wizards can give me some good advice while I'm putting together the quote. I'm trying to limit the need for any subcontracting for the back-end functionality, so my question is whether or not WordPress can handle the following (via plugins or light custom

wordpress widget drag and drop not working after update to 3.5.1

眉间皱痕 提交于 2019-12-06 15:00:09
问题 I use ata-pp5 theme with wordpress for my site,recently after i update my wordpress to3.5.1 now the drag and drop feature in the widget area is not working..,i already try add Google Libraries plugin but it also did't work, 回答1: Have you tried: => Deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s). => Resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin

How to filter category posts by date?

痴心易碎 提交于 2019-12-06 12:16:29
问题 I am looking to have a drop down menu at the top of a category page that will allow me to then filter the posts by date. I will most probably have to make use of custom fields, but that isn't the issue. I know you can make a custom post query using GET style variables, but with pretty URLs enabled, I cannot seem to use the GET variables to filter specific posts (e.g. www.domain.com/category/?orderby=title&order=ASC etc etc ) I have tried looking for plugins, but nothing seems to jump out at

Random permalink key in wordpress

雨燕双飞 提交于 2019-12-06 11:52:41
问题 I want to have a custom permalink for each new post in WordPress like: http://mysite.com/x5Kvy6 (like bit.ly). I tried this little script, but it adds only 5-digit numbers to the post title in the permalink. function wp_unique_post_slug( $slug, $post_ID, $post_status, $post_type, $post_parent ) { if($slug!=""){ $random=rand(11111,99999); //I needed 5 digit random $slug .= "-" . $random; } return $slug; } How can I make a random key instead of the post title? I have not researched URL

How do I check if email submitted via Contact form 7 exists in my database?

可紊 提交于 2019-12-06 11:17:08
问题 When customer submits email via contact form 7, how do I check if email already exists in my database and change notification message to "Your email already exists in our database" So far I have tried using before_send hook, but when I click submit, the page just hangs and no confirmation message. Below is the function I have in my functions.php add_action( 'wpcf7_before_send_mail', 'check_email' ); function check_email( $cf7 ) { $email = $cf7->posted_data["email"]; if($email == 'Is in our

redux framework wordpress calling variable

喜夏-厌秋 提交于 2019-12-06 10:50:45
问题 I have installed the redux plugin via wordpress and great and all. I have been using the demo content to get the used to the framework, but I can't figure out how to call the data in the template? I have been using option tree for a long time and figured that one out.. this is what I thought would be the proper call out but I guess not.. This is the code I thought would get the logo uploaded. <?php global $redux_demo; echo $redux_demo['media'];?> 回答1: Have you tried this? <?php global $redux