• Resolved castorpollux285

    (@pascal2851981)


    Hello,

    when I add a “Tag Attribute”, there is a space added under the trigger. In this screenshot https://ibb.co/kBXpJc the trigger is red, and under the trigger is a white space. How can I remove this space?

    Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author twinpictures

    (@twinpictures)

    check the css.
    What tag are you using?
    try div.

    Thread Starter castorpollux285

    (@pascal2851981)

    Thanks for your reply.

    I’m using the tag “h6”. “div” doesn’t work for me, because I’d like to use a style for the Trigger Text.

    Plugin Author twinpictures

    (@twinpictures)

    ok, so if you are using H6, then it’s very likely the theme’s style has a definition for that tag that includes margin-bottom or padding-bottom attributes.

    If you want to style the trigger text, why not use the trigclass attribute, as that’s what it for.

    For example (after setting the default target tag to div in the plugin settings):

    [expand title="Trigger Text" trigclass="my_trigger_class"]...[/expand]
    

    And then in your theme’s quick-css section (if it has one) or your child theme’s style.css file… or even the plugin’s custom css area add something like the following CSS:

    .my_trigger_class {
       font-weight: 700;
       color: #ff00cc;
       font-size: 1.2 em;
    }
    

    Now, if you like, you can even set the my_trigger_class as the default trigclass in the plugin settings (under the setting aptly named default trigclass) and all that would then be required for the expand shortcode is something like:

    [expand title="Trigger Text"]...[/expand]
    

    That should resolve the issue for you. Let us know if you still have questions.

    Thread Starter castorpollux285

    (@pascal2851981)

    That works, thanks!

    How do I remove the arrow in the css?

    Plugin Author twinpictures

    (@twinpictures)

    Thread Starter castorpollux285

    (@pascal2851981)

    I use “background-image: none;” and the arrow disappears.

    But now I have another problem. When I open the trigger and close it again, the trigger is much higher then before: https://imgur.com/a/XguB2JS

    Plugin Author twinpictures

    (@twinpictures)

    you will need to be a bit precice. what do you mean you use “background-image: none;” where did you use it?
    did you follow the directions here? Clearly you did not define both arrows:

    .collapseomatic {
        background-image: none !important;
    }
    .colomat-close {
        background-image: none !important;
    }
    

    This is not hand grenades or horseshoes… one must be rather exact.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Adds Space when using Tag Attribute’ is closed to new replies.