Viewing 6 replies - 1 through 6 (of 6 total)
  • Just tested this on one of my sites with the latest version and it is working (actual font size of number) so maybe there is some theme or other plugin css overriding the elementor style? Maybe an !important tag (which yes I know is weird because it’s a span and not an h1, h2 etc.)

    screenshot numeric span font size control

    • This reply was modified 7 years, 6 months ago by pingram. Reason: fix url
    Thread Starter suportgc

    (@suportgc)

    Hello good afternoon.

    Identified the error, however, do not know how to fix.

    Could you help me?

    Follow gif.
    https://suportgc.com.br/wgc/wp-content/uploads/2016/10/Error-2.gif

    This is the code that this disturbing

    html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    font-family: inherit;
    /* font-size: 16px; */
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;

    Ok great job finding the problem. The issue here is CSS and how it applies rules based on hierarchy.

    That code you found above is considered a higher specificity because it applies the font-size directly to all span tags.

    The counter number’s font-size (via Elementor) is actually set on the parent object (<div class=”elementor-counter-number-wrapper”>). You’ll see when you inspect the code again.

    The fix to this is to “reset” the font-size of the span to it’s nearest specifying parent. You’ll need to add custom css that has:

    span { font-size: 100%; }

    or maybe even more specifically:

    .elementor-counter span { font-size: 100% !important; }

    When setting font-size to 100% it matches whatever was previously specified, closest by it’s parenting html nodes all the way up to the <body> tag and lastly the browsers default font-size for that type of element (as I understand it anyway).

    Could be a simple style.css fix in your theme.

    • This reply was modified 7 years, 6 months ago by pingram. Reason: more specifics
    Thread Starter suportgc

    (@suportgc)

    Ualll.

    Thank you very much.

    You are a genius.

    A great week for you

    Glad to help =)

    Thread Starter suportgc

    (@suportgc)

    Hello Philip Ingram.
    I would just like to take the opportunity to take a doubt.
    In my theme, there is an error and was passed to solve.

    However only with this by changing the original code of style.css.

    you tell me how can I enter this new code to replace the original.
    without changing the style.css

    just entering the code on a theme css child

    below is the case, to better understand

    https://wordpress.org/support/topic/error-when-using-megamenu-and-zerif-pro/

    Preview the solution
    In the theme’s style.css file, find:

    li.current>a:before {
    position: absolute;
    margin: auto;
    z-index: 1;
    content: “”;
    width: 75%;
    height: 2px;
    bottom: 0px;
    left: 12.5%;
    }
    Replace with:

    li.menu-item.current>a:before {
    position: absolute;
    margin: auto;
    z-index: 1;
    content: “”;
    width: 75%;
    height: 2px;
    bottom: 0px;
    left: 12.5%;
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error to use widget counter’ is closed to new replies.