Support » Theme: raindrops » change width

  • Resolved britinspain

    (@britinspain)


    How can I change to the width to 1200px because 974 is too narrow and fluid width does not render on mobile devices please

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

    (@nobita)

    Hi britinspain

    Add to functions.php first line, ver $raindrops_page_width.like below.

    <?php
    /**
     * My Extend Page Width
     *
     *
     *
     */
    	$raindrops_page_width = '1200';
    ?>
    <?php
    /**
     * functions and constants for Raindrops theme
     *
     *
     * @package Raindrops
     * @since Raindrops 0.1
     */
        if ( ! defined( 'ABSPATH' ) ) {
            exit;
        }

    Note.
    I detect It turned out that only few bugs.

    Although I think that operation is not affected, if detailed to PHP, please also change the following into it.

    functions.php line 3535

    Please add to global ver $raindrops_document_width like below

    function raindrops_header_image( $type = 'default', $args = array( ) ) {
    			global $raindrops_document_width;

    This bug maybe fixed next versions (1.136 or higher )

    Thank you.

    Hi That worked, thank you. However, header image has disappeared. Also how do I change width of center column please.

    Theme Author nobita

    (@nobita)

    how do I change width of center column please.

    Appearance / Raindrops Options / Extra Sidebar Width

    It will interlock and the width of a center column will change, if the width of an extra sidebar is adjusted.

    Thank you.

    Hi, thanks for your help. Sorry, but all that did was to change the right hand sidebar. I increased from 25% to 50% and the right sidebar got bigger but the center column did not change.

    Also do you know why the header image has disappeared when I changed the width of the theme?

    Theme Author nobita

    (@nobita)

    The right column and a central column share width according to the width of the right column.

    A header picture does not usually disappear just because it changed a setup of width.

    Would you let know the address of a site?

    Thank you.

    Certainly. its http://www.antiquitiesgiftshop.com. Many thanks

    Theme Author nobita

    (@nobita)

    I understand this is Raindrops bug.

    Quick Fix below

    Fix header image.

    Add to functions.php first line <?php before

    <?php
    add_filter( 'raindrops_header_image_css', 'bug_custom_doc_hotfix' );
    
    function bug_custom_doc_hotfix( $css ){
    
    	$doc = raindrops_warehouse_clone( 'raindrops_page_width' );
    
    	$width = 1200;
    
    	$height = 198; // your header image height Please config
    
    	if( $doc == 'custom-doc' ) {
    
    		return str_replace( array( 'width:px;', 'height:0px;'),
    				array( 'width:'.$width.'px;', 'height:'.$height.'px;' ), $css );
    
    	}
    
    	return $css;
    }
    ?>

    Center columns width
    I think that the problem of a center column probably becomes normal by the following corrections although it is not reproducible.

    style.css line:3364

    .yui-ge div.first {
    width: 516px;
    }

    change below

    .yui-ge div.first {
    /*width: 516px;*/
    }

    Thank you.

    That has worked perfectly, thank you

    Theme Author nobita

    (@nobita)

    The header image bug when using $raindrops_page_width has fixed version 1.137

    Thank you.

    Many thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘change width’ is closed to new replies.