pradg
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: How to add Adsense code in Block theme websitesHi @ravikumarr ,
I tried adding an HTML block and put a sample adcode inside the Header template part. But the source of the page shows that it is not inside the <head></head> tag but outside of it. Google says the adsense code needs to be placed just before the </head> tag but adding a HTML block doesn’t place it there. How does one do it?
Also can you share any websites you know which are monetized and built on FSE themes so I can take a look?
THanks,
Prad
Forum: Everything else WordPress
In reply to: My custom Header Template part is not available to chooseThanks. THis worked.
But why isn’t this shown in the list of Patterns/Template parts? That’ll make it so much easier for anyone to create a template part and have it available in the list of pre-defined patterns or template parts. Kinda confusing.
Well, whether I try to add the third party search as a block or a short code, I cannot place these inside the Navigation Block. I can insert them in the header or anywhere else but not INSIDE the Navigation Block. Not sure why
Forum: Themes and Templates
In reply to: [Ollie] Display just the search icon, not box?The default Search block has a “Icon only” option but it is useless cos when a user clicks on it, the search box appears to the left and pushes the menu items and just breaks the UX/UI. I had raised this in the WP Git but the devs think that the behaviour of the Search block needs to be coded by the theme developers. I have been looking for a solution where I just display a search icon and on clicking it, the search bar drops down like on so many websites. Is this something your team can do, customizing the Search Block?
Forum: Themes and Templates
In reply to: [Ollie] Mobile menu breakpointBy Mobile responsive controls, do you mean how Elementor or other page builders have controls for different screen sizes? That will be amazing and is very much needed in FSE
Thank you. Works perfectly.
I worked it out. Had to work on the padding value of the text box class
Forum: Reviews
In reply to: [Spectra One] Some IssuesWhat other Block themes have you tried which gave better pagespeed results? I am currently trying out Spectra One and would like to know about other themes.
Thanks.
Thanks for replying. I am not a developer and just trying to build my site using 2024 as Gutenberg block editing is touted as “no-code” FSE. I have run into multiple issues which unfortunately have no answers anywhere. I am not sure how to reply or ask for a feature request on GitHub. And the thread you have linked has some really good suggestions but looks like active discussion has stopped from 2022. I’ll go ahead and reply to the main thread anyway.
Forum: Everything else WordPress
In reply to: Search Block Functionality on Responsive Mobile/TabletThanks James.
Will post this in that group.
Hi George,
working on Local WP. Not sure how I can share that. I have come close somewhat. Here’s what I have done.
Group block at the top. 1 Column inside it. 2 columns inside the parent column. 1 Row inside the first of the 2 columns which in turn has the Row block which has the Site Logo and Menu (Navigation). The 2nd column has the search bar. THis now works fine on Tablet/Mobile where the site logo and hamburger menu is at the top and Search Bar is below that. However, the gap between these 2 columns is more than what I’d like. Since there are no responsive controls, I am unable to reduce the gap.
I then used Kadence blocks to do the same and used Row Layout in place of column view and able to reduce the gap between site logo and menu and search. However, with this, when i click on the hamburger menu, the menu is displayed behind the search bar (2nd image). Not sure how to fix this.
- This reply was modified 1 year, 11 months ago by pradg.
Forum: Everything else WordPress
In reply to: How to add Adsense code in Block theme websitesThanks George.
Let’s say I have created a page with a group with a specified width within which is all my content (paragraphs, featured image etc). I’d assume these ad inserter plugins can insert the ad code into the paragraphs etc within this group block. But let’s say I want ads to show outside this group on either side, can these plugins do that cos the page itself by design wont have any defined space to add any more blocks outside this group? That’s my main concern as I am new to this. Hopefully my query makes sense.
Thanks.
Hi @kel-dc
With what you’d like to do, Categories may be a good fit. For example, make “Vegetarian Burger” a post category. And assign the post “beans or tofu or veggies” to the “Vegetarian Burger” category.
You can also create an archive page just with categories using the Categories Block, so on that page only the category name “Vegetarian Burger” is visible, and only then when you click “Vegetarian Burger” will open and display all posts under that category like the “beans” post.
If you’re referring to something else, please share more details or examples.Thanks for responding. Categories is not what I am looking for. I am looking for a solution to just show the first 2 words of the post title when the posts are displayed in a grid on a custom page or an archive page. Whatever the post title might be (let’s say post title is “How to display only the first 2 words of a post title”, I only want the end user to see “How to” on the site), the end user should only see the first 2 words of the title but the full title should be present in the source for SEO.
Unsure of how to do it with code as I am a non-developer. I would say logically this will be some code which will scan the post title and split it into as many words it is and creates a new string containing only the first two words and then that is displayed on the website.
Thanks,
Prad