- This topic has 20 replies, 3 voices, and was last updated 3 years, 3 months ago by Elvin.
-
AuthorPosts
-
December 27, 2020 at 6:36 am #1595561Bruce Wayne
here is my site in private information.
i’ve to adding a hook into the site container.
but it’s showing only on mobile. can you please help to check
is there any thing we can do to put this gold-line into desktop view as well.thanks.
December 27, 2020 at 8:00 pm #1596159LeoStaffCustomer SupportHi there,
I’m seeing a merged header element on the home page.
Is that neccessary?
If not can you remove it first?
December 27, 2020 at 8:40 pm #1596202Bruce Waynewhich one that you’ve mention please tell me
December 27, 2020 at 8:51 pm #1596206ElvinStaffCustomer SupportHi,
The easiest approach to achieve what you’re trying to do would be to use the
:after
pseudo element in CSS:Try adding this:
.header-wrap:after { content: ""; background-image: url(https://biogaming.asia/wp-content/uploads/2020/11/b3efb816e6fa5b2a-e1604560083313.jpg); background-repeat: no-repeat; background-size: cover; width: 100%; display: block; height: 2px; }
Here’s how to add CSS: https://docs.generatepress.com/article/adding-css/
And remove the gold line image block you’ve hooked in so there’s no duplicate display.
Alternatively, you can keep the image you’ve hooked, but hook it to
generate_after_header
instead of what you’re currently hooking it into. (you seem to have hooked it ongenerate_inside_container
)December 27, 2020 at 9:40 pm #1596229Bruce Waynethis is very nice , but as it showing every page here.
can you optimizing it to show only in /blog
and as it’s showing full page , can we shrink it contain with body content ?December 27, 2020 at 9:45 pm #1596234ElvinStaffCustomer SupportTry this instead:
.gb-container-44ef72f1 { content: ""; background-image: url(https://biogaming.asia/wp-content/uploads/2020/11/b3efb816e6fa5b2a-e1604560083313.jpg); background-repeat: no-repeat; background-size: cover; width: 100%; display: block; height: 2px; }
This follows the max-width of the container block you’ve placed as the navigation bar.
December 27, 2020 at 9:47 pm #1596236Bruce Waynethis isn’t working
December 27, 2020 at 10:01 pm #1596244Bruce Waynewhat about if i need to put it for all page with max-width of the container block
December 28, 2020 at 12:05 am #1596318ElvinStaffCustomer SupportIf you must follow the max-width of the container, this should do it:
.header-wrap:after { content: ""; background-image: url(https://biogaming.asia/wp-content/uploads/2020/11/b3efb816e6fa5b2a-e1604560083313.jpg); background-repeat: no-repeat; background-size: cover; width: 100%; display: block; height: 2px; max-width: 1200px; margin-left: auto; margin-right: auto; }
December 28, 2020 at 12:28 am #1596336Bruce Waynethis working great , but again so sorry.
i try to use in for all page but it’s looking not smooth for me
can we try to use it only at /blog page ?Thanks so much
December 28, 2020 at 12:31 am #1596337ElvinStaffCustomer SupportTo clarify: You want this to appear on the
/blog
page ONLY?If so, try this:
body.blog .header-wrap:after { content: ""; background-image: url(https://biogaming.asia/wp-content/uploads/2020/11/b3efb816e6fa5b2a-e1604560083313.jpg); background-repeat: no-repeat; background-size: cover; width: 100%; display: block; height: 2px; max-width: 1200px; margin-left: auto; margin-right: auto; }
This CSS only applies if the page is the /blog page.
As for it not looking smooth, can you explain a bit more? How is it not looking “smooth”?
December 28, 2020 at 12:33 am #1596341Bruce Wayneyes it’s good now
then can we move all content at /blog page shift it below about 10px ?
Thanks.
December 28, 2020 at 12:42 am #1596343Bruce Waynebecause i need some space about 10-20 px between content and that gold-line like another page
December 28, 2020 at 12:45 am #1596346ElvinStaffCustomer SupportAdd this:
@media (min-width:769px){ body.blog div.content-area { margin-top: 30px; } }
Adjust the value to your preference. 🙂
December 28, 2020 at 12:45 am #1596348Bruce Waynealso another 2 question. (then we have 3 now)
1.can we move all content at /blog page shift it below about 10px ?
because i need some space about 10-20 px between content and that gold-line like another page.2.if you check at /blog page you will see a post is stick together there
how to move it to have some space there because it’s too stick !3.at the homepage in the bottom , i’ve put a method to show a lastest post there.
but it’s show only 100 words there per post. how to make it show about 300 words there?Thanks.
-
AuthorPosts
- You must be logged in to reply to this topic.