Support Forum » User Profile

Forum Replies Created

Viewing 5 posts - 31 through 35 (of 35 total)
  • Author
    Posts
  • hartsook@gmail.com[email protected]
    Participant

    Suppose 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.

    hartsook@gmail.com[email protected]
    Participant

    I 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.

    hartsook@gmail.com[email protected]
    Participant

    duh! Just remembered I can set custom CSS for the Beaver Themer singularpost template

    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.

    hartsook@gmail.com[email protected]
    Participant

    To 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.

    hartsook@gmail.com[email protected]
    Participant

    single instance of a repeating Event post with the initial date hidden

    This is what the default format looks like with the initial event date displayed

    The MB fields are not repeating fields
    MB fields

    Here's the UI when editing an Event
    MB fields when editing an Event

Viewing 5 posts - 31 through 35 (of 35 total)