• Resolved sbmiles21

    (@sbmiles21)


    Good morning to everybody,

    hope someone can help me. I added -Shortcode widget- on my page in order to display the “Product unit price” (e.g. 10,34 Euro/kg)

    The short code [gzd_product_unit_price] and the widget are working, so far so good. Now I would like to change the font size etc.. I try following code in the Widget custom css:

    selector  {
        background-color: red;
        text-
        font-size: 10px;
    }

    Background is changing but not the font

    BR
    ben

Viewing 3 replies - 1 through 3 (of 3 total)
  • You have “text-” on a line without a semicolon. The css is reading this as
    “text-font-size: 10px;”
    If you wanted to use “text-” as a comment, put /* text- */

    • This reply was modified 5 years, 9 months ago by jolanxbl.
    Thread Starter sbmiles21

    (@sbmiles21)

    Hello jolanxnl,

    you are right. I changed, but even if i try:

    
    selector  {
        background-color: red;
        font-size: 1px;
        font-weight: :500;
    }

    Nothing change. Honest to say I dont know exaclty but maybe “Selector” is wrong?

    BR
    ben

    You may need to use !important to override the setting from somewhere else. But make sure you don’t use 1px for the font size, as it will be unreadable. I’m guessing you meant 10px instead. Also, you have an extra colon in the font-weight. Be careful as small typos can make a big difference.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode widget, Unit price, font size’ is closed to new replies.