• Hi,
    I have recently updated the theme, but now the header image has these opaque extensions on the sides and I don’t know how to disable them. Can i remove them? if so, how?

Viewing 15 replies - 1 through 15 (of 29 total)
  • screenshots or the website link would be better…

    Thread Starter barbussi

    (@barbussi)

    Sorry, I forgot the link:
    http://www.sullacimadelbonsai.it

    Ahh.. I saw your website’s code just now… and I found two elements..

    <div class=”flex-left-opacity”></div>
    <div class=”flex-right-opacity”></div>

    Try removing these!!

    These are in your “Flex Slider’s” section. So, look in it. That should solve it ^_^

    Thread Starter barbussi

    (@barbussi)

    Thank you for the reply,
    I tried to do what you suggested, but the extensions of the header image are still there, even if now they’re not opaque.
    I would like to have no extensions on the sides of the image at all…
    Do you know how can I do it?

    Hmm…then… try to limit the HEADER SIZE…

    I hope you are familiar with CHILD THEME and using it.

    Put this in your child theme’s function.php or if you are not using child theme, then put this in you functions.php of your theme (or whatever php file is handling your website’s funtions..)

    add_theme_support( 'custom-header', array(
    'header_image'    => '',
    'header-selector' => '.site-title a',
    'header-text'     => false,
    'height'          => 98,
    'width'           => 1260,
    ) );

    Change the width and height accordingly. your Header image is “1200X400”. So, put this :-

    add_theme_support( 'custom-header', array(
    'header_image'    => '',
    'header-selector' => '.site-title a',
    'header-text'     => false,
    'height'          => 400,
    'width'           => 1200,
    ) );

    Let me know if you succeed. I am currently doing the same on my website, although yours and mine conditions are different. But, this should work out!

    well.. sorry… the code I gave you is for theme “twenty fourteen”.
    You’re gonna have to change the HEADER call yourself. In 2014 theme… the theme calls header like that, so, look in your website..how your calls it

    Thread Starter barbussi

    (@barbussi)

    Thank you again,
    I don’t know where in the function.php I have to paste the code that you gave me.
    (I don’t use child theme)

    This is my function.php:
    https://www.dropbox.com/s/v54594aeu3ipe84/functions.php?dl=0

    Please repost that last one to a pastebin – that’s too much code to post here:

    http://codex.ww.wp.xz.cn/Forum_Welcome#Posting_Large_Excerpt_of_Code

    And BTW, if you are modifying theme files, all of your changes will be lost when the theme is updated – which is why you should be using a child theme –

    https://codex.ww.wp.xz.cn/Child_Themes

    Thread Starter barbussi

    (@barbussi)

    Sorry, I am a noob indeed.
    This is the link: http://pastebin.com/EJZyZ4DL
    And I will create a child-theme, promise!

    @barbussi… create a child theme first…I’ll PM u the steps… will take only a minute… okay.?

    EDIT:- No PM Option here.. anyway… read and follow here.. :-

    To start a child theme, create a new theme folder (eg. “folo-child”) under the “wp-content/themes” folder. Create 2 files in the child theme folder and name it style.css and functions.php

    Now follow the instructions here please :- http://pastebin.com/j1v2phW1

    after that… this :-

    go to your admin panel>>appearance>>theme–> use your FOLO-CHILD theme.

    @dhruvkanojia – please keep help on these forums as per:

    http://codex.ww.wp.xz.cn/Forum_Welcome#Helping_Out

    @wpyogi … I’ll try to help wherever I can ^_^

    ohh.. and even I need some help lol.

    Thread Starter barbussi

    (@barbussi)

    I’ve created the child-theme, I’m using it.
    Thanks, I’ve learned something new.

    now.. paste the code I gave you in you functions.php..

    put it at the end in your child theme’s function.php (not in parent theme’s folder)..

    I’ll quote my comment again :-

    Put this in your child theme’s function.php or if you are not using child theme, then put this in you functions.php of your theme (or whatever php file is handling your website’s funtions..)

    add_theme_support( 'custom-header', array(
    'header_image'    => '',
    'header-selector' => '.site-title a',
    'header-text'     => false,
    'height'          => 98,
    'width'           => 1260,
    ) );

    Change the width and height accordingly. your Header image is “1200X400”. So, put this :-

    add_theme_support( 'custom-header', array(
    'header_image'    => '',
    'header-selector' => '.site-title a',
    'header-text'     => false,
    'height'          => 400,
    'width'           => 1200,
    ) );

    did u just change your website’s layout.? lol.. I can’t seem to see your header image now πŸ˜›

Viewing 15 replies - 1 through 15 (of 29 total)

The topic ‘Header image’ is closed to new replies.