How to change the themes “Live Preview” url within the Appearance->Themes page?

External Live Previews For Themes The Live Preview buttons, on the /wp-admin/themes.php page, are generated from the tmpl-theme micro template: <script id=”tmpl-wpse” type=”text/template”> …cut… <div class=”theme-actions”> <# if ( data.active ) { #> <# if ( data.actions.customize ) { #> <a class=”button button-primary customize load-customize hide-if-no-customize” href=”https://wordpress.stackexchange.com/questions/220473/{{{ data.actions.customize }}}”><?php _e( ‘Customize’ ); ?></a> <# } … Read more

How do you remove Link backs on Theme settings page?

Basic idea is to search theme files for text of the link and remove code that inserts it. Best case scenario it would be single line to remove. Worst case scenario – link would be added by highly obfuscated code and rigged to break theme if link is removed. Since theme you referenced is in … Read more

How do you install a .MO (language file) to use as part of a theme?

You need to load_theme_textdomain() in your theme. Place this in theme functions file: function theme_init(){ load_theme_textdomain(‘theme_name’, get_template_directory() . ‘/languages’); } add_action (‘init’, ‘theme_init’); Then you put you language files in you theme /languages folder you language files should be es_ES.mo and es_ES.po without the text domain at the front as the codex states File names … Read more

Making an IE only site (Like a Mobile only site)

maybe you can somehow use template redirect? I’m not too clear on how it works, but it may be worth investigating. function my_check_is_ie() { global $is_winIE; if ( ! $is_winIE ) return; // load template for IE include(TEMPLATEPATH . ‘/IE_template.php’); // or maybe? if( is_home() ) include(TEMPLATEPATH . ‘/IE_home.php’); elseif( is_single() ) include(TEMPLATEPATH . ‘/IE_single.php’); … Read more

Alternate header image

You can try this Random from a set of images : <img src=”http://www.mywebsite.com/images/image_<?php echo rand(1,10); ?>.jpg” alt=”” /> This would load a random image from image_1.jpg, image_2.jpg … to image_10.jpg or $images = array(“cool_image.jpg”, “nice_pic.jpg”, “sunset.jpg”); $rand = array_rand($images); <img src=”http://www.mywebsite.com/images/<?php echo $images[$rand]; ?>” alt=”” /> This would select a randow image from thoses specified … Read more

Using a _GET gives me a debug error (over my head)

The error is occurring as the $_GET array doesn’t have the item $_GET[‘do’] in it. Therefore it throws this notice. To check if something exisits in the array try: if( isset( $_GET[‘do’] ) ) $do_that = $_GET[‘do’]; else $do_that=””; or a cleaner method would be to use short hand notation $do_that = ( isset( $_GET[‘do’] … Read more