• Resolved BlackNeko

    (@blackneko)


    Hi again ?? i have been trying to remove the web tittle link ..:BlackNeko in my web BlackNeko.net and put there a random banner image. I have made 5 banners image design with the page tittle and i love to the web change it daily. As you can see i try to put the 1 banner but it does not display correctly and is only a test.

    I put more explanatory capture:
    Capture

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author nobita

    (@nobita)

    Hi BlackNeko

    i have been trying to remove the web tittle link ..:BlackNeko in my web

    Add style.css( or child theme/stylecss ) last line, below style rule.

    #site-title a{
       display:none;
    }

    Randam Banner Image

    Raindrops is not support randam banner image.

    If you need randam image, Please use header image.

    banner image 950X200

    When upload banner image from theme options upload

    Please set height 200px

    Thank you

    Thread Starter BlackNeko

    (@blackneko)

    thanks! i remove the web tittle ??

    Raindrops is not support randam banner image.
    If you need randam image, Please use header image.

    I dont want to use header image because i like too much the style of my banner image + header image ?? Then how i can put my banner(not random and only one banner ?? ) and make it display correctly? you can see right now its display very baddly ?? https://www.blackneko.net

    Thread Starter BlackNeko

    (@blackneko)

    It finally be able to displayed correctly the banner title image ?? but now i just like to ask if it will be possible to use the same php function or script used for make randam the header image in the banner image. The two do the same, show image right? why i cant use the same function for both copying the php function or script for the banner image in the header image? is located at the function.php? i cant find it.

    Theme Author nobita

    (@nobita)

    Add to functions.php ??

    <?php
    add_filter( 'raindrops_embed_meta_css','my_randum_image_banners' );
    
    function my_randum_image_banners( $css ){
    
    	$banner_images = array(
    				'your banner image url 1',
    				'your banner image url 2',
    				'your banner image url 3',
    			);
    	$banner_images_count	= count( $banner_images ) - 1;
    	$randum_num 		= rand( 0, $banner_images_count );
    
    	return preg_replace( "!\n#hd{[^}]+}!", "\n#hd{background:url(". $banner_images[ $randum_num ] .");}",$css );
    }
    ?>

    Thread Starter BlackNeko

    (@blackneko)

    hi ^^ i put it in functions.php at the very end of the file and dont work, i cant see any banner image. https://www.blackneko.net

    I dont know if i write the links wrong pls check it i put the banners in images in raindrops theme

    i try:

    $banner_images = array(
    				'/images/header1.png',
    				'/images/header2.png',
    				'/images/header3.png',
    				'/images/header4.png',
    				'/images/header5.png',
    			);

    and i try:

    $banner_images = array(
    				'images/header1.png',
    				'images/header2.png',
    				'images/header3.png',
    				'images/header4.png',
    				'images/header5.png',
    			);

    Theme Author nobita

    (@nobita)

    change below line ( remove \n )

    return preg_replace( "!#hd{[^}]+}!", "\n#hd{background:url(". $banner_images[ $randum_num ] .");}",$css );

    My Raindrops works correct.

    wrong

    '/images/header1.png'

    change below( absolute uri )

    https://your-web-site/wp-content/uploads/header1.png

    Thread Starter BlackNeko

    (@blackneko)

    now works almost perfect ?? all i need is to adjust the x-height to 88 for full display image width. When I put the banner for the first time i use the image upload in the Raindrops Extend Theme Options and to show the whole image i have to put the option box height: 88.

    Theme Author nobita

    (@nobita)

    try below

    return preg_replace( "!#hd{[^}]+}!", "\n#hd{background:url(". $banner_images[ $randum_num ] .");height:88px;}",$css );
    Thread Starter BlackNeko

    (@blackneko)

    Now works perfect ?? thank you!!! I think I’m the user has given you more work xD sorry

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Remove web tittle and put random banner image’ is closed to new replies.