Site logo

[Resolved] Feature image with page title displayed inside

Home Forums Support [Resolved] Feature image with page title displayed inside

Home Forums Support Feature image with page title displayed inside

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #2541656
    chris

    I must be doing this horribly wrong, because im playing with padding in mobile vs desktop to try achieve what i want – its a mess! so deleted all the mobile related CSS but i really would love to know if there is a way to apply a blanket feature image across the whole website and have every h1 title appear cantered in it with the css style i have applied for text style?

    Currently targeting .entry-title .product_title.entry-title .woocommerce div.product woocommerce-products-header__title
    with

    .woocommerce-products-header__title{
    text-align: center;
    font-weight: 900;
    color: white;
    font-size: 40px;
    margin-top: -63px;
    padding-bottom: 30px;
    color: #444444;
    }

    it was all ok on desktop but mobile looked awful, there must be a simple way of achieving this im missing, could i make element for whole site apart from home, and write a command in <-> to make the page title / product tile / product arcive name appear in it?

    #2541667
    Leo
    Staff
    Customer Support

    Hi Chris,

    i really would love to know if there is a way to apply a blanket feature image across the whole website

    I’m not sure what you are referring to here – can you explain a bit more?

    have every h1 title appear cantered in it with the css style i have applied for text style?

    Something like this should work:

    h1 {
        text-align: center !important;
    }

    If this doesn’t help, please link me to the specific page in question.

    #2541677
    chris

    I i think i have managed to do nearly what i want, i used header element with image applied accross whole site but not homepage, and i have made the page title, product title ect fit inside with CSS but i was wondering if there is something i can write in the ELEMENT <—-> area to make the titles appear there automatically without CSS spacing and margins

    #2541679
    Leo
    Staff
    Customer Support
    #2541734
    chris

    Not sure we are on the same page or if we are im lost sorry,

    I have added <center><h1 class=”entry-title”>{{post_title}}</h1></center>

    to element content which works displaying all page title where i want, but i cant centre the text for some reason?

    #2541824
    Leo
    Staff
    Customer Support

    Are you using the block editor with GenerateBlocks by any chance?

    It will make this a lot easier.

    #2541908
    chris

    I have generateblocks i dont know what is block editor

    #2541910
    chris

    I just want to centre title pls css wont work

    #2541917
    Leo
    Staff
    Customer Support

    The block editor is the Gutenberg editor.

    Can you link me to the specific page that shows the issue?

    #2541950
    chris

    All page, the title is show to the left i want to centre

    #2542264
    chris

    ??

    #2542279
    Fernando
    Customer Support

    Hi Chris,

    Sorry, your response may have slipped through our system.

    Have you tried setting the Horizontal alignment to Center if you’re using a Header Element? Reference: https://docs.generatepress.com/article/header-element-overview/#page-hero

    If that doesn’t work try adding this through Appearance > Customize > Additional CSS:

    .page-hero.inside-header {
        justify-content: center;
    }
    #2542331
    chris

    Worked perfect thanks so much!

    Something has now knocked my mobile view header not full width though not sure what has done that, maybe some padding?

    #2542333
    chris

    Never mind found and fixed, thanks again for that code!!

    #2542606
    chris

    Resolved

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.