Forum Replies Created
-
AuthorPosts
-
April 9, 2019 at 4:15 PM in reply to: ✅MB fields placed After Title are not visible when using Gutenberg Block editor #14102
[email protected]
ParticipantSuppose there were MB blocks you would add like any other block. But these blocks are created when you create a MG field group. So adding your Field Group Block would give you the full Gutenberg editor width to enter/edit your custom fields instead of trying to squeeze the meta box fields into the sidebar.
February 19, 2019 at 10:06 AM in reply to: Can I add custom CSS for a post based on a Meta Box field state? #13402[email protected]
ParticipantI was able to make this work, but not perhaps most elegantly, by using the textarea field and defaulting to:
<style>.ai1ec-time.ai1ec-row {display:none !important;}</style>Then with conditional logic I hide that field in the metabox if the user chooses that this is a "repeating" event.
I then use Beaver Tbemer to insert an html module at the top of the content area for the repeating events Themer Layout so that <style> code gets inserted before the target selector gets called on the page.
I was not able to get this css style to work on an existing MB field if I put it into the html before or after field for other fields that appear at the top of a repeating event post.
February 17, 2019 at 9:02 AM in reply to: Can I add custom CSS for a post based on a Meta Box field state? #13377[email protected]
Participant
I put the CSS code
.ai1ec-time.ai1ec-row {display:none !important;}
in the Themer Singular template that I use to display all the Events, so that solves the immediate problem. But to make this work I had to make 2 Themer templates, one applied to Events with category = repeating and one that excludes category = repeating (without the css in the template)Still it would be great if MB had a CSS "field" that could insert custom CSS onto a page to style elements based on MB conditional logic.
February 14, 2019 at 5:33 PM in reply to: Can I add custom CSS for a post based on a Meta Box field state? #13341[email protected]
ParticipantTo be clear, the custom post type is an Event type created by All-in-One-Calendar plugin not a MB custom post type. I'm just trying to tweak it because I'm using Beaver Builder to display these posts in a post grid in addition to the normal calendar views the calendar plugin offers.
But to generalize, it would be useful if I could insert CSS styles on a page based on MB Conditional Logic, not just for these Calendar Events, but anywhere I would use MB I could hide or override CSS styles on any element on the page with a CSS selector.
If for example the MB selection is #1 then the #section-heading might be set to blue, if #2 - red, if #3-yellow, etc. So using MB to invoke CSS to style non-MB elements on a page.
February 14, 2019 at 5:26 PM in reply to: Can I add custom CSS for a post based on a Meta Box field state? #13340[email protected]
Participant

The MB fields are not repeating fields

Here's the UI when editing an Event

-
AuthorPosts