- This topic has 17 replies, 4 voices, and was last updated 2 years, 7 months ago by
Fernando.
-
AuthorPosts
-
January 25, 2023 at 4:17 am #2508401
Anant
I have two queries:
1: How do I hide featured image from top of post page only on Mobile. On desktop, I want to stay as it is.
2: In mobile, on homepage, the menu icon shows up on top right. Althoguh there’s no menu which exists so showing that icon is redundantJanuary 25, 2023 at 6:01 am #2508492David
StaffCustomer SupportHi there,
1. go to Appearance > Elements ( or via the Admin Bar > Elements menu when viewing a single post ) and edit the element titled:
Post page hero
Select the Image Block, and go to Advanced > Additional CSS Class(es) and add:
hide-on-mobile
2. Add this CSS to your site:
@media (max-width: 768px) { .main-navigation .menu-toggle { display: none; } }
January 25, 2023 at 7:48 am #2508615Anant
Hi David,
The 2nd issue is fixed. Thank You.
For the 1st, it will hide the image for both desktop and mobile. I want to hide it only for mobile.
January 25, 2023 at 9:56 am #2508877Ying
StaffCustomer SupportHi there,
David’s solution for your 1st is correct, it’s to hide the block only for mobile.
Can you give it a try?
January 26, 2023 at 6:43 am #2509777Anant
Hi Ying,
I completely missed the 2nd line mentioned by David for my 1st query.
I just implemented that. The features image does not show on top on mobile now but it leaves blank white space there now. I have shared the post url in private info for you to check.
January 26, 2023 at 8:58 am #2510041David
StaffCustomer SupportSelect the Container Block that the image was in, and switch to Mobile View, in Spacing set the Min Height to
0
January 26, 2023 at 9:16 pm #2510613Anant
I tried to do that but still the huge portion remains empty on post pages.
After selecting image block, I set 0 under padding & margin within spacing section. I’ve shared the screenshot of same in priv info.January 26, 2023 at 9:34 pm #2510632Fernando Customer Support
Hi Anant,
The
min-height
setting is still there. You’ll need to remove that for mobile.Can you share admin login credentials? I’ll take a screenshot of the setting you need to alter.
Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
January 26, 2023 at 9:59 pm #2510644Anant
Hi Fernando,
I have shared the credentislas in private info. Please do the needful and guide me on the process.
January 26, 2023 at 10:09 pm #2510650Fernando Customer Support
Thank you! Here’s a screenshot: https://share.getcloudapp.com/7KujNl1y
You need to set it to
0
on mobile view.January 26, 2023 at 10:17 pm #2510657Anant
Thank You, this is done.
I also had another query, since you’ve the access I think its best to get addressed here only.
While writing posts, when I add multiple new lines between subsequent paragraphs or between an image and a paragraph, only 1 new line difference shows up when the post/page is published.
I want to use multiple line gaps between subsequent sections to keep it clear for the reader. Right now no matter how many enters/new lines you hit, the gap remains of 1 only. Hope I was able to make it clear.
January 26, 2023 at 10:32 pm #2510668Fernando Customer Support
Can you provide a link to a post on your site where you’ve tried to implement this?
January 26, 2023 at 11:26 pm #2510697Anant
Shared the link of one such post in priv info.
January 27, 2023 at 1:02 am #2510734Fernando Customer Support
I see.
There are three things you can do.
1. Add this CSS through Appearance > Customize > Additional CSS:
.single-post .entry-content p { margin-bottom: 3em }
This increases the bottom margin of all single post paragraphs.
2. Add an HTML Block, and add this code:
<br><br>
3. Add a Spacer Block. Reference: https://developer.wordpress.org/block-editor/reference-guides/components/spacer/
January 27, 2023 at 1:47 am #2510770Anant
The 2nd and 3rd option look good methods.
One doubt I had regarding the 3rd option, does using spacing blocks affect seo of website in any negative manner?
-
AuthorPosts
- You must be logged in to reply to this topic.