Bring up the media uploader on click
Go here … it’s not quite ready for prime time but will get you started: http://www.webmaster-source.com/2013/02/06/using-the-wordpress-3-5-media-uploader-in-your-plugin-or-theme/#comment-37213
Go here … it’s not quite ready for prime time but will get you started: http://www.webmaster-source.com/2013/02/06/using-the-wordpress-3-5-media-uploader-in-your-plugin-or-theme/#comment-37213
Can’t tell you exactly why but that function didnt work for me either.. Finally i have found this script i have modified a little bit here: get_browser() Here it is (in your functions.php): function whatBrowser() { //browsers define(“UNKNOWN”, 0); define(“TRIDENT”, 1); define(“GECKO”, 2); define(“PRESTO”, 3); define(“WEBKIT”, 4); define(“VALIDATOR”, 5); define(“ROBOTS”, 6); if(!isset($_SESSION[“info”][‘browser’])) { $_SESSION[“info”][‘browser’][‘engine’] = … Read more
i’d use custom post type “slideshow” and multiple custom field “image” only. Plugin named Types should do the trick for you, but you’ll still have to code the slideshow
The way I’ve always migrated sites is not by search and replacing, but just by changing two fields in wp_options: siteurl and home. Try doing only this, no search and replace, and see if it fixes your options page / widgets. It may be that by replacing all instances of “localhost,” you’re actually impairing your … Read more
I don’t see your theme_options function being called anywhere.
It is really hard to say without being able to look at your theme files directly. But you are most likely going to have to put <div id=”hbz_outer_container” style=”position: relative;”> <div id=”hbz_drop_shadow”> somewhere in your header.php and then put the closing tags: </div><!– hbz_drop_shadow –> </div><!– hbz_outer_container –> in your footer.php header.php and footer.php should … Read more
You can call the function in any template file in your theme folder.
Lead dev of Redux here. You sure can! Just be sure to specify a different opt_name as well as a different page_slug and you’re golden. Redux was built to do just that.
Have a look into set_theme_mod(): Creates or updates a modification setting for the current theme and get_theme_mod(): Retrieves a modification setting for the current theme With this you should be able to get the logo: $custom_logo_id = get_theme_mod( ‘custom_logo’ ); $logo = wp_get_attachment_image( $custom_logo_id, ‘full’ ); This would set the attachment 12 as the logo … Read more
As mentioned, you should never modify the code of a theme. You should always create a Child Theme that uses that theme. Info about Child Themes – start here https://developer.wordpress.org/themes/advanced-topics/child-themes/ Whenever a theme is updated by the theme author, it overwrites all of the theme code, including the changes you have made to the code. … Read more