WordPress.org

Ready to get started?Download WordPress

Forums

raindrops
[resolved] change width (11 posts)

  1. britinspain
    Member
    Posted 9 months ago #

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

  2. nobita
    Member
    Theme Author

    Posted 9 months ago #

    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.

  3. britinspain
    Member
    Posted 9 months ago #

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

  4. nobita
    Member
    Theme Author

    Posted 9 months ago #

    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.

  5. britinspain
    Member
    Posted 9 months ago #

    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?

  6. nobita
    Member
    Theme Author

    Posted 9 months ago #

    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.

  7. britinspain
    Member
    Posted 9 months ago #

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

  8. nobita
    Member
    Theme Author

    Posted 9 months ago #

    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.

  9. britinspain
    Member
    Posted 9 months ago #

    That has worked perfectly, thank you

  10. nobita
    Member
    Theme Author

    Posted 9 months ago #

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

    Thank you.

  11. britinspain
    Member
    Posted 9 months ago #

    Many thanks

Reply

You must log in to post.

About this Theme

About this Topic

Tags