Remove colon in Contact Widget

Support Area Forums Bottega Remove colon in Contact Widget

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question:
  • Author
    Posts
  • #10852
    Avatar photoKim Hannan
    Participant

    Client wants to put other data in the Contact widget in the front…so have done so. But I want it in the Hours Title field, and it automatically adds a colon “:” after the info, which won’t work for this application.

    Can you provide a snippet to make the colon go away, please?

    Thanks much, KH

    #10853
    Bill Robbins
    Participant

    Kim,

    No problem. Inside the widget-contact.php file you’ll see this section:

    
    <ul class="times">
    	<?php if($day1) echo '<li>'.$day1.':</li>'; ?>
    	<?php if($times1) echo '<li class="hours">'.$times1.'</li>'; ?>
    	<?php if($day2) echo '<li>'.$day2.':</li>'; ?>
    	<?php if($times2) echo '<li class="hours">'.$times2.'</li>'; ?>
    	<?php if($day3) echo '<li>'.$day3.':</li>'; ?>
    	<?php if($times3) echo '<li class="hours">'.$times3.'</li>'; ?>
    </ul>
    

    In each one of those you’ll see something like this;

    
    <li>'.$day1.':</li>
    

    You can delete the colon from just before the < and that will remove it from the front of your site.

    Save your changes and that should do it.

    Let me know if you have any trouble,
    Bill

    #10864
    Avatar photoKim Hannan
    Participant

    got it…thanks!

    #10867
    Bill Robbins
    Participant

    No problem. Have a great day.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove colon in Contact Widget’ is closed to new replies.