Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #219038

    Hallo,
    ich möchte den Content-Bereich bei dem Theme Enfold verkleinern. Da die Breite in einem variablen CSS steht, muss der Wert für die Breite irgendwoher kommen. Leider kann ich nicht finden, wo dieser Wert einzugeben ist.
    Vielen Dank

    #219420

    Hello,
    I want to reduce the content area included in the theme Enfold. Since the width is in a variable CSS, the value for the width must come from somewhere else. Unfortunately I can not find where this value is entered.
    Thanks a lot

    #219815

    Hi!

    Which content area? You can edit functions.php, find this code:

    $avia_config['layout']['fullsize'] 		= array('content' => 'twelve alpha', 'sidebar' => 'hidden', 	 'meta' => 'two alpha', 'entry' => 'eleven');
    $avia_config['layout']['sidebar_left'] 	= array('content' => 'nine', 		 'sidebar' => 'three alpha' ,'meta' => 'two alpha', 'entry' => 'nine');
    $avia_config['layout']['sidebar_right'] = array('content' => 'nine alpha',   'sidebar' => 'three alpha', 'meta' => 'two alpha', 'entry' => 'nine alpha');

    You can decrease the content units to eight then increase the sidebar width to four.

    $avia_config['layout']['fullsize'] 		= array('content' => 'twelve alpha', 'sidebar' => 'hidden', 	 'meta' => 'two alpha', 'entry' => 'eleven');
    $avia_config['layout']['sidebar_left'] 	= array('content' => 'eight', 		 'sidebar' => 'four alpha' ,'meta' => 'three alpha', 'entry' => 'eight');
    $avia_config['layout']['sidebar_right'] = array('content' => 'eight alpha',   'sidebar' => 'four alpha', 'meta' => 'three alpha', 'entry' => 'eight alpha');

    Regards,
    Ismael

    #222743

    Hello Ismael,

    like Arapla I want to resize the left sidebar, so I edit functions.php in my child theme but nothing happens.

    Here my url: http://ecbiz147.inmotionhosting.com/~morepa5/?page_id=2438

    Here my functions.php:
    <?php

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */

    /*to add or edit an Advanced Layout Builder element*/
    add_filter(‘avia_load_shortcodes’, ‘avia_include_shortcode_template’, 15, 1);
    function avia_include_shortcode_template($paths)
    {
    $template_url = get_stylesheet_directory();
    array_unshift($paths, $template_url.’/shortcodes/’);

    return $paths;
    }

    /*Resize left sidebar*/
    $avia_config[‘layout’][‘sidebar_left’] = array(‘content’ => ‘ten’, ‘sidebar’ => ‘two alpha’ ,’meta’ => ‘two alpha’, ‘entry’ => ‘nine’);

    #223318

    Hi!

    Wenn du die Breite im Child theme anpassen möchtest füge folgenden Code am Ende der Child Theme functions.php ein:

    
    add_action('init','avia_child_theme_setup');
    function avia_child_theme_setup(){
    global $avia_config;
    $avia_config['layout']['fullsize'] 		= array('content' => 'twelve alpha', 'sidebar' => 'hidden', 	 'meta' => 'two alpha', 'entry' => 'eleven');
    $avia_config['layout']['sidebar_left'] 	= array('content' => 'eight', 		 'sidebar' => 'four alpha' ,'meta' => 'three alpha', 'entry' => 'eight');
    $avia_config['layout']['sidebar_right'] = array('content' => 'eight alpha',   'sidebar' => 'four alpha', 'meta' => 'three alpha', 'entry' => 'eight alpha');
    }
    

    Dieser Code überschreibt die Werte in der $avia_config Variabel, sobald das parent theme geladen wurde.

    Regards,
    Peter

    #223344

    It works, thanks :-)

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Breite des Containers ändern (Theme: Enfold)’ is closed to new replies.