Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Display text on service portal widget

asher14
Tera Contributor

Working on a custom widget in the service portal. I would like to add text to display on the widget.

Currently coded:

<div>

Hours of Operation: Mon- Fri

8:00-5:00

Contact: xxx-xxx-xxx

</div>

 

Below is how I want it to display on the page:

Hours of Operation: Mon- Fri

                                   8:00-5:00

Contact:                     xxx-xxx-xxx

 

How can I change the code to display the above

1 ACCEPTED SOLUTION

AnveshKumar M
Tera Sage

Hi @asher14 ,

Try the below html code in your widget.

<div>

<div class="row">

    <div class="col-sm-6">

      Hours of Operation:

    </div>

    <div class="col-sm-6">

      Mon- Fri <br></br>

    </div>

<div class="row">

    <div class="col-sm-6">

      Contact:

    </div>

    <div class="col-sm-6">

      xxx-xxx-xxx

    </div>

  </div>

</div>

 

Thanks,

Anvesh

Thanks,
Anvesh

View solution in original post

1 REPLY 1

AnveshKumar M
Tera Sage

Hi @asher14 ,

Try the below html code in your widget.

<div>

<div class="row">

    <div class="col-sm-6">

      Hours of Operation:

    </div>

    <div class="col-sm-6">

      Mon- Fri <br></br>

    </div>

<div class="row">

    <div class="col-sm-6">

      Contact:

    </div>

    <div class="col-sm-6">

      xxx-xxx-xxx

    </div>

  </div>

</div>

 

Thanks,

Anvesh

Thanks,
Anvesh