Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1346298
Adding HTML to widget titles
Closed

Comments

  • Eddie_E1 started the conversation

    Hi, I know this is just a small design query but I'm trying to get all my widget titles to appear like the attached image, but when I try to add html code i.e. span or classes to the 'first word' part of the title and save it. The system removes the HTML. How can I add this so I can customise my titles better.

    Thanks

    Ben

  •  7,092
    Oliver replied

    Hi Ben!

    pls. give link to the page with the widgets on your site

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Eddie_E1 replied

    Hi, at the moment my site is on localhost while developing.... But fixed it anyway by adding html to the functions file before the menu.


    Thanks

    Ben



  •  7,092
    Oliver replied

    HI!

    Sorry, can you make full screenshot how it's must look like on the page? 

    Or here is the css example:

    h4.widget-title:before {
        content: '';
        height: 13px;
        width: 2px;
        background-color: #000;
        float: left;
        margin-right: 10px;
        margin-top: 8px;
    }

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Eddie_E1 replied

    Hi, so ideally I would like to add a <span>  to the first word (see  span SS) so I can perform the following style (see widgettitle). However it strips the extra code once saved. It's only a small issue so understand if it cannot be done

    Thanks

    Ben

  •  7,092

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Eddie_E1 replied

    Thank you I was able to solve this.

    Ben

  •  7,092
    Oliver replied

    Welcome!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver