• Resolved caiozim

    (@caiozim)


    Hello,
    I want to modify the html code from a widget that is shown to users visiting the website.
    For example:

    <div class="widget"><h3>List of Categories</h3><ul>	<li><a href="https://www.domain.com/category1/">Category 1</a>
    </li>
    	<li><a href="https://www.domain.com/category2/">Category 2</a>
    </li></ul></div>

    I want to remove the spaces of code. Change for:

    <div class="widget"><h3>List of Categories</h3><ul><li><a href="https://www.domain.com/category1/">Category 1</a></li><li><a href="https://www.domain.com/category2/">Category 2</a></li></ul></div>

    Someone know how I can do this? I want to do it because one of my clients is too much perfectionist and he doesn’t want spaces in html code.

    Thx
    Caio

Viewing 1 replies (of 1 total)
  • Theme Author alex27

    (@alex27)

    You’d have to go into admin/widgets/archives-widget.php and edit it manually (via child theme of course).

Viewing 1 replies (of 1 total)
  • The topic ‘How can I modify html from a widget?’ is closed to new replies.