Have idea – don’t know how to execute,

  • I could do a right border (instead of a bar) but really want a triangle or arrow.

  • Is there anything wrong with the method I told you for adding the separators?

  • I could do a right border (instead of a bar) but really want a triangle or arrow.

    I see, you can also remove the > from the dynamic tag, and add an icon to the text block via the setting panel.

    https://learn.generatepress.com/blocks/block-guide/getting-started-generateblocks/the-blocks-settings/

  • Okay – How to add separators.

    There needs to be some dynamic element to it as to not add an “arrow” icon after the last position listed. This is important because not every employee will have a fixed number of positions. Some might have 5 others 3 while others might have 4.

    Here is a link to the mock-up:
    https://imgur.com/a/ua8mAjk

    Any how-to is appreciated!
    Thanks!

  • Add the icon to the #2,3,4,5 text blocks.

  • I got it now… (CHATGPT to the rescue)

    .career-path {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .career-path .gb-text {
        display: flex;
        align-items: center;
        margin: 0; /* remove default h5 spacing */
    }
    
    /* Triangle separator */
    .career-path .gb-text:not(:last-child)::after {
        content: "";
        display: inline-block;
        margin: 0 12px;
        width: 0;
        height: 0;
        border-left: 6px solid #1f3a5f; /* adjust to brand color */
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
    }
  • Hum…you don’t need to use CSS, you can add icons via the text block’s settings panel.

  • Figured it out. Took me a while. Really appreciate it!

  • Glad to hear that 🙂

  • I wasn’t seeing what you were saying earlier… kept at it though! :^)

  • No problem, glad you figured it out 🙂

  • Close – then discovered something… The icons do not know they are in a last position. So while then LAST (5th) position contains no arrow – the others do.

    The last visible position should not. You can see what I mean by following the link I provided in the private info.

    So should I revert to the css I suggested above?

  • Hi there,

    You can use this simple CSS to fix that:

    .gb-element-e9a5281e p:last-child .gb-shape {
      display: none;
    }
  • Awesome and easy fix. Had it in my head that what happens to text happens to icon (that they weren’t independent).

    Appreciate it everyone!

  • Every time I get closer… still not there.

    I have two H elements in a container. The first is dynamic & Display: Inline Flew. The Second is not dynamic but is Display: Inline. So:
    ‘Dynamic Data’ then “‘s Profile”

    Example:
    John‘s Career Path
    The BOLD element is the dynamic element.

    The issue I am having is that I cannot get rid of the gap between the dynamic data and the apostrophe-s.

    Tried padding, margin, and gap settings. Nothing budges.

    You can see what is happening at the link below.

    Thanks

  • If an element’s display is set to inline, spacing controls won’t work for it.
    Try setting it to inline-block, then you can use nagetive margin-left. eg. -0.2em

Viewing 16 posts - 17 through 32 (of 38 total)
  • You must be logged in to reply to this topic.