WordPress.org

Forums

raindrops
Header Image / Title Space (5 posts)

  1. fixmybrokepc
    Member
    Posted 2 years ago #

    I noticed a while ago that if I edit the title image, my secondary text is shown *ON* my image. This behavior is preferred for aesthetics. Instead, the image has been cut in half and the secondary text is displayed in the upper right corner of the theme. How can this be fixed?

    An example can be seen here, https://www.xaerolimit.net / http://www.xaerolimit.net

  2. nobita
    Member
    Theme Author

    Posted 2 years ago #

    Raindrops using javascript for detect header image height.

    Please javascript conflict check.

    If you need change header image height without javascript.
    Below code try.

    Add functions.php.

    add_filter( 'raindrops_header_image_elements', 'raindrops_force_header_height' );
    
    function raindrops_force_header_height($content){
    
        $new_image_height= 300;// your image height
    
     return str_replace(
                '<div id="header-image">',
                '<div id="header-image" style="height:'.$new_image_height.'px;">',
                $content);
    }

    Site description position.

    If you need text positon on the header image.

    Please open adminbar/your site name/customizer

    Site Title Tagline click and checked Display Header Text.

    Then the sitedescription will on the header image.

    Sorry poor at english.

    Thank you.

  3. fixmybrokepc
    Member
    Posted 2 years ago #

    I'm sorry, but I don't quite understand what you are suggesting me to do here?

  4. nobita
    Member
    Theme Author

    Posted 2 years ago #

    I don't quite understand

    My poor english ?
    or
    Code result issue?

  5. MrSlartibartfast
    Member
    Posted 2 years ago #

    Hi fixmybrokepc,
    As far as I understand - you should edit the functions.php in your child-theme (or if you haven't created a child theme in the theme itself) and add the code he presented.
    Have you tried to insert the code?

    Greets

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.