Title: windofchange87's Replies | WordPress.org

---

# windofchange87

  [  ](https://wordpress.org/support/users/windofchange87/)

 *   [Profile](https://wordpress.org/support/users/windofchange87/)
 *   [Topics Started](https://wordpress.org/support/users/windofchange87/topics/)
 *   [Replies Created](https://wordpress.org/support/users/windofchange87/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/windofchange87/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/windofchange87/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/windofchange87/engagements/)
 *   [Favorites](https://wordpress.org/support/users/windofchange87/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Remove category from blog page](https://wordpress.org/support/topic/remove-category-from-blog-page/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years ago](https://wordpress.org/support/topic/remove-category-from-blog-page/#post-9369906)
 * I think I have solved this function in the file function.php
 *     ```
       function exclude_category($query) {
       if ( $query->is_home() ) {
       $query->set('cat', '-3 -5');
       }
       return $query;
       }
       add_filter('pre_get_posts', 'exclude_category');
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Remove category from blog page](https://wordpress.org/support/topic/remove-category-from-blog-page/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years ago](https://wordpress.org/support/topic/remove-category-from-blog-page/#post-9369869)
 * I tried the Advanced Category Excluder plugin,
    [https://wordpress.org/plugins/advanced-category-excluder/](https://wordpress.org/plugins/advanced-category-excluder/)
   it works but I have several errors with mysql_get_server_info (), there was written
   in the installation that was not tested with this wordpress version
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Remove category from blog page](https://wordpress.org/support/topic/remove-category-from-blog-page/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years ago](https://wordpress.org/support/topic/remove-category-from-blog-page/#post-9369831)
 * Hello,
    Thanks for the detailed explanation, I followed the tutorial but it does
   not work, it continues to show it on the blog page. Help me
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Remove category from blog page](https://wordpress.org/support/topic/remove-category-from-blog-page/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years ago](https://wordpress.org/support/topic/remove-category-from-blog-page/#post-9360425)
 * Sorry i think i did not say well, i would like the blog page not to show the 
   articles with category “slider” and “dintorni”, i mean the whole article belonged
   to them in different sections for this i was thinking of the category__not_in
   function
 * thanks
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Remove category from blog page](https://wordpress.org/support/topic/remove-category-from-blog-page/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years ago](https://wordpress.org/support/topic/remove-category-from-blog-page/#post-9359780)
 * I confirm the screenshot you sent by adding the removal of this:
 * [https://www.dropbox.com/s/0zk12xlukuz949w/Cattura.PNG?dl=0](https://www.dropbox.com/s/0zk12xlukuz949w/Cattura.PNG?dl=0)
 * Thanks [@imranaliweb](https://wordpress.org/support/users/imranaliweb/)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Remove category from blog page](https://wordpress.org/support/topic/remove-category-from-blog-page/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years ago](https://wordpress.org/support/topic/remove-category-from-blog-page/#post-9359626)
 * I want to remove the “slider (id = 5)” and “dintorni (id = 3)” categories.
    And
   leave all the others.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Error in Blog Page](https://wordpress.org/support/topic/error-in-blog-page/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years ago](https://wordpress.org/support/topic/error-in-blog-page/#post-9357562)
 * Resolved, thank you for everything
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Edit fixed image on pages](https://wordpress.org/support/topic/edit-fixed-image-on-pages/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years ago](https://wordpress.org/support/topic/edit-fixed-image-on-pages/#post-9349445)
 * I did as suggested, but this precludes you from customizing it for each page.
   
   Thanks
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Edit fixed image on pages](https://wordpress.org/support/topic/edit-fixed-image-on-pages/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years ago](https://wordpress.org/support/topic/edit-fixed-image-on-pages/#post-9349230)
 * I tried as suggested by [@imranaliweb](https://wordpress.org/support/users/imranaliweb/),
   but not the image is replaced, but exactly in which file I find the div that 
   contains the image so as to replace it directly there.
    thank you
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Edit fixed image on pages](https://wordpress.org/support/topic/edit-fixed-image-on-pages/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years ago](https://wordpress.org/support/topic/edit-fixed-image-on-pages/#post-9346476)
 * Sorry [@imranaliweb](https://wordpress.org/support/users/imranaliweb/),
    Although
   not related to the topic, but can you help me how to enter a second menu in the
   footer?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[NewsMag] modify header image](https://wordpress.org/support/topic/modify-header-image/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/modify-header-image/#post-9201273)
 * Thank you for the reply,
    I opted for this solution I do not know if right, but
   at least it works
 *     ```
       $current_category = single_cat_title("", false);
       $current_category = strtolower($current_category);
       $current_category = str_replace(" ", "-", $current_category);
       if ( is_category( '8' ) ){
       	$current_category = str_replace("società", "societa", $current_category);
       }
       $current_category = get_template_directory_uri() . "/assets/images/" . $current_category . ".png"; 
   
       if ( ! empty( $current_category ) ): ?>
       	<?php 
       		$additional = 'style="background-image:url(' . esc_url( $current_category ) . '"' 
       	?>
       <?php endif; ?>
   
       	<div class="newsmag-custom-header" <?php echo $additional ?>>
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[NewsMag] Banner](https://wordpress.org/support/topic/banner-31/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/banner-31/#post-9140021)
 * For now I opted for this solution.
 *     ```
       <?php 
       $banner_image = get_template_directory_uri() . '/assets/images/';
   
       $array_image = [
        ["www.otowell.it","otowell.jpg"],
        ["www.terapiaperacufeni.it","terapiaperacufeni.jpg"],
        ["www.sentobene.it","sentobene.jpg"]
       ];
       $shuffle = shuffle($array_image);
   
       foreach ($array_image as list($a, $b)) {
       	$a;
       }
       $join = $banner_image . $b;
       ?>
       	<a href="<?php echo esc_url( $a ) ?>" target="_blank">
       		<img src="<?php echo $join; ?>" />
       	</a>
       ```
   
 * What do you think ?
    Although the best thing would be to integrate a carousel
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[NewsMag] Banner](https://wordpress.org/support/topic/banner-31/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/banner-31/#post-9124795)
 * Ok, thanks for replying
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [category](https://wordpress.org/support/topic/category-69/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/category-69/#post-9106411)
 * thank you so much
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[NewsMag] slider](https://wordpress.org/support/topic/slider-236/)
 *  Thread Starter [windofchange87](https://wordpress.org/support/users/windofchange87/)
 * (@windofchange87)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/slider-236/#post-9043821)
 * thanks a lot, that’s great

Viewing 15 replies - 1 through 15 (of 15 total)