Remove colon in Contact Widget
URL to the page in question:
-
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
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
No problem. Have a great day.
- The topic ‘Remove colon in Contact Widget’ is closed to new replies.