After being hacked Fatal error: Call to undefined function get_header() in 404.php on line 1

“Generally this happens when someone has mistakenly put index.php from a theme in the WP install folder, where it overwrites the index.php that is the main WordPress file. Download WordPress again, and take the one file, index.php from its root folder, replacing the file you now have as index.php It sometimes means someone has loaded … Read more

Stop header code from showing in category page?

You can achieve that by changing the conditional to if ( !is_home() && !is_archive() ) Also consider using if and else if. So your optimized code would be: <?php if ( !is_home() && !is_archive() ) { if ( get_post_type() == ‘pretty-little-liars’ ) { echo ‘<div id=”headerimg”><img src=”http://tv-cafe.com/wp-content/uploads/2013/01/pllbanner.png”></div>’; } else if ( get_post_type() == ‘revenge’ ) … Read more

Changing 2011 theme header image based on user dropdown

I had to take information from both of your posts to be able to come with something. Try replacing <img src=”https://wordpress.stackexchange.com/questions/89211/<?php header_image(); ?>” width=”<?php echo $header_image_width; ?>” height=”<?php echo $header_image_height; ?>” alt=”” /> width <?php if (!(isset($_POST[“styles”]))) { //if post not set (first visit) if ($_COOKIE[“chosenStyle”] == “night”) { echo ‘<img src=”‘.get_template_directory_uri() . ‘/images/headers/SomethingOriginalTheMoonAndStars.png” width=”1000″ … Read more

Building theme so user can change header image [closed]

You can add theme support in your functions file for a Custom Header page using this code which also enables you to add a default size and selector class which you can style with CSS. add_theme_support( ‘custom-header’, array( ‘width’ => 320, ‘height’ => 60, ‘header-selector’ => ‘.site-title a’, ‘header-text’ => false ) ); Or this … Read more

Change text “My Basket” in woocommerce artificer theme

Technically, woocommerce_cart_link() is added to the site just before the menu by the artificer_header_cart_link() function, which is pluggable, meaning you could change that function to call a function that duplicates woocommere_cart_link() but with the text changed. However, I think the easiest thing to do is to tap into the gettext filter which kicks in for … Read more