Sol1dus
Forum Replies Created
-
Forum: Plugins
In reply to: [Category Posts in Custom Menu] Show the whole archiveHello.
Thanks for the reply. I understand that, but after a long search your plugin was as close as I could get. ?? It seems like this it works for what I need.
Forum: Themes and Templates
In reply to: [Radiate] Changing "Home" to "HOME" on navigation barIf you mean in the nav menu add this to your style.css
#site-navigation { text-transform: uppercase }
Forum: Themes and Templates
In reply to: [Radiate] Different header images depending on pageYou’re welcome. Glad I could help by posting my own solution. ??
Forum: Plugins
In reply to: [Category Posts in Custom Menu] Show the whole archiveI’ve been through the code and it seems commenting this piece solves the problem. Could anyone with more knowledge than me please confirm me this?
$query_arr['tax_query'] = array(array('taxonomy'=>$menu_item->object, 'field'=>'id', 'terms'=>$menu_item->object_id ));
Forum: Themes and Templates
In reply to: [Radiate] Different header images depending on pageSorry for the double post. I forgot to mention that the images on the folders are numbered from 0 to 2. If you want more than 3 you have to change the second number (2) on the rand function to the number of your last picture (number of pictures on the respective folder – 1). The function gives a random number on the entered interval.
You also need to change .jpg to another format in case you are using a different one. With the current code, It is important that all images are on the same format.
Forum: Themes and Templates
In reply to: [Radiate] Different header images depending on pageI have ended up solving this problem, if anyone happens to want the same thing, by re-implementing the function radiate_internal_css, located on the extras.php file, on my child’s theme functions.php file.
The code is basically the same except that substituted this:
$header_image_height = get_custom_header()->height; if ( is_user_logged_in() ) { $height = $header_image_height - 32; } else { $height = $header_image_height; } $heightsmall = $height - 68; $header = get_header_image();
By this:
if(is_home()) { $header = get_stylesheet_directory_uri() . "/images/header-home/" . rand(0, 2) . ".jpg"; $height = 750; //This number represents the home image height. } else { $header = get_stylesheet_directory_uri() . "/images/header-others/" . rand(0, 2) . ".jpg"; $height = 450; //This number represents the other pages image height. } if ( is_user_logged_in() ) $height-= 32; // Login bar height. $heightsmall = $height - 68;
I also had to add two folders on my child’s theme images folder. One with the name header-home and another with the name header-others. The first one has the header images that I want on my home page and the other the ones I want on the other pages. The sizes I attribute to $height are the sizes of the respective header images.
I also had to add the
if ( ! function_exists( 'radiate_internal_css' ) ) :
before the function in extras.php begins andendif;
after the function ends so that my function on the child theme works. I would like to ask, if possible, for the developer to add this if condition on the next updates, so that I don’t have to add it every time there is a new update. Thank you.