• Saiqua

    (@saiqua)


    Hi – i can’t seem to remove the big header image from the pages i want it removed on. Can you please help?

Viewing 15 replies - 31 through 45 (of 61 total)
  • Thread Starter Saiqua

    (@saiqua)

    done.

    Thread Starter Saiqua

    (@saiqua)

    so far – works like a charm ??

    rohallah

    (@rohallah)

    header image is in this file custom-header.php in folder named inc in theme folder ,we should override it for our template.

    Thread Starter Saiqua

    (@saiqua)

    so we need to create a new custom-header.php in the child theme folder?

    rohallah

    (@rohallah)

    yes so far all things is good and correct
    I ‘m working with code to change template to what we want,
    we should create a template for home page I think , as soon as I write the code I ‘ll back here soon

    Thread Starter Saiqua

    (@saiqua)

    thank you ??

    rohallah

    (@rohallah)

    You’re welcome

    divjotsingh_440

    (@divjotsingh_440)

    Hello saiqua,

    Add the following code to custom css-

    body:not(.home) #masthead {
    display: none !important;
    }

    It should keep the header on home page but remove it on every other page.

    Divjot

    rohallah

    (@rohallah)

    hi Divjot, thanks to your reply!
    I added your style to my style.css file of child theme , it works well. we tried to solve the problem by template .Can we use the template in folder template-parts to define two templates for pages to solve the problem in another way?

    divjotsingh_440

    (@divjotsingh_440)

    Hello rohallah,
    It would be a very tedious procedure.
    What can also be done is addition of a conditional in the header.php.
    The entire code of header is enclosed in

    if ( is_home ) {
    ...
    }

    It is a better approach as well.

    rohallah

    (@rohallah)

    all right, Although it would be a very tedious work , but we learned many things by trying to solve the problem by using templates.
    I learned using child theme and making page templates . It was a good way to learn new things. I want to solve the problem by studying more and complete the page template I started previously.
    I also appreciate your ways to solve the problem we stuck in.
    Best regards
    Rohallah

    Thread Starter Saiqua

    (@saiqua)

    @divjotsingh_440

    works well!!! thank you so much!

    @rohallah thank you SO much for your help, i learnt a lot in the process ?? do share with me if you find a good template solution; i’m very much interested in figuring out different ways of handling the code.

    thanks again guys!

    Thread Starter Saiqua

    (@saiqua)

    this is really strange. it worked just fine when i did it a moment ago. but now the photo disappeared from homepage as well!

    rohallah

    (@rohallah)

    Hi Sqiqua ,you’re welcome , I’m has started studying codex to learn what we need to solve the problem by template ,It is a best way to learn wordpress functionality and learn how to design a theme from scratch.as soon as I complete my study I’ll be back here to solve the problem by template good luck.

    divjotsingh_440

    (@divjotsingh_440)

    This is not possible, saiqua. The code should hide the video from all the pages except the homepage.
    Is there any way you can setup a working demo site so that I can take a look at the issue.

Viewing 15 replies - 31 through 45 (of 61 total)
  • The topic ‘Customizing header image’ is closed to new replies.