- This topic has 7 replies, 4 voices, and was last updated 2 years, 11 months ago by
David.
-
AuthorPosts
-
April 4, 2023 at 8:10 am #2596582
danhotchkiss
I am seeing an extra paragraph in my display of single events from The Events Calendar. Not sure whether this is coming from or how to troubleshoot it. Could you take a look at the indicated page and see if you can find the source of the paragraph above “Event Series”?
If this is purely a The Events Calendar issue it would be helpful for you simply to confirm that.
Thanks for any help,
DanApril 4, 2023 at 9:44 am #2596713Ying
StaffCustomer SupportHi there,
Do you mean this
p?
https://www.screencast.com/t/wx91PlAJomkIt looks like just an empty paragraph block, can you check?
April 5, 2023 at 10:31 am #2598385danhotchkiss
Yes, that is the paragraph I mean. Somehow it and the container it is in are getting added. I’d like to remove them so they don’t push the rest of the event information downward.
April 5, 2023 at 10:38 am #2598396Leo
StaffCustomer SupportDo you see that paragraph inside the GB container in the editor?
April 5, 2023 at 10:58 am #2598416danhotchkiss
On further investigation, I think this is happening because I added the following in The Events Calendar’s Add HTML before event content”:
<!– wp:generateblocks/container {“uniqueId”:”2214663d”,”paddingTop”:”20″,”borderSizeTop”:”1″,”borderSizeRight”:”1″,”borderSizeBottom”:”1″,”borderSizeLeft”:”1″,”backgroundColor”:”#ffffff”,”isDynamic”:true,”className”:”fuusm-box”} –>
And in “Add HTML after event content”:
<!– /wp:generateblocks/container –>
My goal is to apply the fuusm-box class to the single event display. It works, but somehow the extra container and paragraph get added.
Any thoughts? Are there other ways I should be accomplishing my formatting goals?
Thanks,
DanApril 5, 2023 at 12:47 pm #2598558Leo
StaffCustomer SupportNot sure if I fully understand.
Have you considered adding the class using the WP core feature?
https://docs.generateblocks.com/article/advanced-options-overview/#WP-OptionsApril 6, 2023 at 6:43 am #2599471danhotchkiss
I’m absolutely certain I don’t understand! 🙂 I’m not familiar with the WP core way of adding a class–did not know that Custom Attributes would do that. In any case, my problem is that there is nothing in the editor to apply formatting to, because the single Event display is generated in The Events Calendar (TEC).
My basic goal is to make single calendar events from TEC look like my single posts, which are styled in a Content Template element. I have not been able to make a Content Template for TEC events. Here’s what I did that worked, in case it’s helpful to others:
In The Events Calendar Settings – Display – “Add HTML before event content” my modified code is now:
<!-- wp:generateblocks/container {"uniqueId":"2214663d", "isDynamic":"true", "isGlobalStyle":true, "useGlobalStyle":true, "globalStyleId": "medium-fuusm", "className":"fuusm-box"} -->And in “Add HTML after event content”:
<!-- /wp:generateblocks/container -->This wraps my single Event in a GB container with the desired formatting, but adds an extra container and paragraph ahead of it, which I hide with this CSS:
.gb-container-2214663d > .gb-inside-container { display: none; }I can’t escape the thought that there must be a more straightforward way to do this!
Thanks for any help,
DanApril 6, 2023 at 7:29 am #2599530David
StaffCustomer SupportHi there,
And in “Add HTML after event content”:
What is this? Is it a field in the events plugin ?
-
AuthorPosts
- You must be logged in to reply to this topic.