Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Period in sidebar widget
27 May, 2010
8:33 pm
Mindy
Enthusiast
Forum Posts: 43
Member Since:
18 December, 2008
Offline

I know this is kinda ticky tacky, but does anyone know how to remove the period at the end of each sidebar widget's entry in my sidebar? Here is the link: http://www.bygraceonline.org/wp/

27 May, 2010
9:11 pm
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 387
Member Since:
18 June, 2009
Offline

Mindy,
In /sermon-browser/sb-includes/widget.php, line 178 is:

echo ".</li>";

Just take out the period, and you should be all set.

While you are at it, you also might want to take the period out of line 48.

I haven't tried any of this yet, so please post back here after you try it and let us all know if it works. Thanks!

Ben Miller
Pathways Church, Appleton, WI, USA
28 May, 2010
2:16 pm
Mindy
Enthusiast
Forum Posts: 43
Member Since:
18 December, 2008
Offline

I took out both period occurrences in widget.php (though the line number was a couple off for my file) and it still didn't remove it. Any other thoughts as to where this culprit could be hanging out?

1 June, 2010
6:52 pm
Mindy
Enthusiast
Forum Posts: 43
Member Since:
18 December, 2008
Offline

I hate to be a post bumper, but I am pulling my hair out over here trying to find that little period to remove. Any thoughts? Is it for sure located in the widget.php file?

1 June, 2010
7:04 pm
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 387
Member Since:
18 June, 2009
Offline

Mindy, it looks like the code in widget.php is old and not used by the modern WordPress sidebar. I think the code that generates the sidebar widget is in the function sb_widget_sermon() in frontend.php. Take the period out of line 100, which currently looks like this:

echo ".</li>";

Please let us know if that works for you.

Ben Miller
Pathways Church, Appleton, WI, USA
1 June, 2010
7:24 pm
Mindy
Enthusiast
Forum Posts: 43
Member Since:
18 December, 2008
Offline

I am so bummed because I really had high hopes that what you suggested was going to work, but unfortunately, it did not. Any other ideas?

1 June, 2010
8:19 pm
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 387
Member Since:
18 June, 2009
Offline

I just tried the change in frontend.php on our church's site, and it worked. See the "Recent Messages" widget at the bottom of the sidebar on this page:
http://www.pathwayschurch.us/about/

(We don't use the miniplayer, but there used to be a period after the date in each entry of the widget, and now there is not.)

Perhaps you did not change the right line, or you didn't upload the new file to the correct location?

You should be able to see the file currently running in the WordPress control panel. Go to Plugins, find Sermon Browser and click Edit. Click on "sermon-browser/sb-includes/frontend.php". Find the function sb_widget_sermon. Go to the end of the function, and find the line that contains:

echo "</ul>";

If it still contains a period, then the file you edited was not uploaded to the correct location.

Please let me know if you are still having trouble, or if you have more questions.

Ben Miller
Pathways Church, Appleton, WI, USA
1 June, 2010
8:45 pm
Mindy
Enthusiast
Forum Posts: 43
Member Since:
18 December, 2008
Offline

Ben, thanks for your help and persistence! I made sure I was uploading the frontend file to the right place, but apparently something strange was happening there. So I just removed the period via the editing plugin area you recommended I go to and it worked! Yay! Thanks so much!

Forum Timezone: Europe/London

Most Users Ever Online: 40

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

malpan: 2453

jogen: 2440

VanWatterson: 652

GeraldSebring: 364

LucasWoltman: 362

RandellFeenstra: 362

Member Stats:

Guest Posters: 7

Members: 2066

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1071

Posts: 4045

Newest Members: Nixon Designs, zolaperry, tanec69, lbakyl, richdorm, Aaron Velasquez

Moderators: Ben Miller (387)

Administrators: Mark Barnes (425)

Comments are closed.