• Resolved inigolamana

    (@inigolamana)


    Hello!

    First of all thanks for having this useful theme.

    I have some questions:

    1)If I want to change the width or height I know I can do that with CSS editor. At the moment I’m using Custom CSS plug in. The problem comes when I have to choose the image. This is what appears in each photo when I search for the CSS.

    <figure class="gallery-image" style="position: absolute; left: 0px; top: 0px;">
    				<img width="450" height="377" >

    I know that for example If I want to change a button I select that on the CSS and comes like this:

    <strong>button.outline.white</strong> {
    	border-color: #000000;
    	color: #FFFFF;
    }

    so I writte button.outline.white and the function that I want

    }But I don’t know what to choose before img.archive-image { width: auto !important;

    I mean what do I need to copy before: { width: auto !important;

Viewing 1 replies (of 1 total)
  • if you want to have a good width on lightbox (article image show),
    you must to modify functions.php (in parent theme) and go to mofify value. be carefull change width css custom in a child theme.

    be carefull. You must to reload image (good size) and post image headline only!

    exemple for have a 2000 pix image on lightbox:

    <?php
    /**
    * gridsby functions and definitions
    *
    * @package gridsby
    */

    /**
    * Set the content width based on the theme’s design and stylesheet.
    */
    if ( ! isset( $content_width ) ) {
    $content_width = 2000; /* pixels */
    }

    if ( ! function_exists( ‘gridsby_setup’ ) ) :
    /**
    * Sets up theme defaults and registers support for various WordPress features.
    *
    * Note that this function is hooked into the after_setup_theme hook, which
    * runs before the init hook. The init hook is too late for some features, such
    * as indicating support for post thumbnails.
    */
    function gridsby_setup() {

    /*
    * Make theme available for translation.
    * Translations can be filed in the /languages/ directory.
    * If you’re building a theme based on gridsby, use a find and replace
    * to change ‘gridsby’ to the name of your theme in all the template files
    */
    load_theme_textdomain( ‘gridsby’, get_template_directory() . ‘/languages’ );

    // Add default posts and comments RSS feed links to head.
    add_theme_support( ‘automatic-feed-links’ );

    /*
    * Let WordPress manage the document title.
    * By adding theme support, we declare that this theme does not use a
    * hard-coded <title> tag in the document head, and expect WordPress to
    * provide it for us.
    */
    add_theme_support( ‘title-tag’ );

    /*
    * Enable support for Post Thumbnails on posts and pages.
    *
    * @link https://codex.www.ads-software.com/Function_Reference/add_theme_support#Post_Thumbnails
    */

    add_theme_support( ‘post-thumbnails’ );
    add_image_size( ‘gridsby-gallery-thumb’, 450 );
    add_image_size( ‘gridsby-gallery-full’, 2000 );

Viewing 1 replies (of 1 total)
  • The topic ‘Change Images Size ?how?’ is closed to new replies.