windofchange87
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Wallstreet Light] Remove category from blog pageI 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
In reply to: [Wallstreet Light] Remove category from blog pageI tried the Advanced Category Excluder plugin,
https://ww.wp.xz.cn/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 versionForum: Themes and Templates
In reply to: [Wallstreet Light] Remove category from blog pageHello,
Thanks for the detailed explanation, I followed the tutorial but it does not work, it continues to show it on the blog page.
Help meForum: Themes and Templates
In reply to: [Wallstreet Light] Remove category from blog pageSorry 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
In reply to: [Wallstreet Light] Remove category from blog pageI confirm the screenshot you sent by adding the removal of this:
https://www.dropbox.com/s/0zk12xlukuz949w/Cattura.PNG?dl=0
Thanks @imranaliweb
Forum: Themes and Templates
In reply to: [Wallstreet Light] Remove category from blog pageI want to remove the “slider (id = 5)” and “dintorni (id = 3)” categories.
And leave all the others.Forum: Themes and Templates
In reply to: [Wallstreet Light] Error in Blog PageResolved, thank you for everything
Forum: Themes and Templates
In reply to: [Wallstreet Light] Edit fixed image on pagesI did as suggested, but this precludes you from customizing it for each page.
ThanksForum: Themes and Templates
In reply to: [Wallstreet Light] Edit fixed image on pagesI tried as suggested by @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 youForum: Themes and Templates
In reply to: [Wallstreet Light] Edit fixed image on pagesSorry @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
In reply to: [NewsMag] modify header imageThank 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
In reply to: [NewsMag] BannerFor 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 carouselForum: Themes and Templates
In reply to: [NewsMag] BannerOk, thanks for replying
Forum: Developing with WordPress
In reply to: categorythank you so much
Forum: Themes and Templates
In reply to: [NewsMag] sliderthanks a lot, that’s great