Reply
Hacking the WP blogroll...?
Old 10-29-2007, 02:17 AM Hacking the WP blogroll...?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,024
Name: Forrest Croce
Location: Seattle, WA
Does anybody know how to get into the <?php get_links_list(); ?> function? The way my blog is set up, the sidebar items ( search, tags, archives, blogroll ) were using h2 tags. Mainly for layout. I changed all of them to spans with the styling that was applied to the h2s, and everything is great.

Except the rest of these were wrapped up in h2 tags in the Wordpress theme, while the <?php get_links_list(); ?> function emits h2 tags, and the label. I'd like to get into the code it uses, and do the same thing.

Any ideas on how I might go about this?
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
When You Register, These Ads Go Away!
Old 10-29-2007, 02:26 AM Re: Hacking the WP blogroll...?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
In your wp-includes folder, see if you have a file called bookmark-template.php with the get_links_list function in it. That's where I found mine.

Mind you, I hacked mine a bit differently. I found that, to hack the blogroll, I had to get into wp_list_bookmarks (same file) to get what I wanted. You may find better luck going at it this way.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-02-2007, 12:52 AM Re: Hacking the WP blogroll...?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,024
Name: Forrest Croce
Location: Seattle, WA
For extra credit, do you know where I might find the read more function? It's most of what's preventing my home page from validating.

I guess I should download the whole folder and use grep...
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 11-02-2007, 01:08 AM Re: Hacking the WP blogroll...?
jamestl2's Avatar
Web 2.0? What is the Web?

Posts: 1,900
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
I believe the read more function is in the wp-includes/post-template.php file.

While I'm not as familiar with custom coding jobs, from my understanding, this plugin may help apply yours or others different CSS styles to the links (including the blogroll):
http://sw-guide.de/wordpress/plugins/link-indication/
__________________
Read this if you are new. | PageRank only applies to Web PAGES!
Learn about the Bermuda Triangle
Who is the Antichrist?


Last edited by jamestl2 : 11-02-2007 at 01:33 AM.
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Reply     « Reply to Hacking the WP blogroll...?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12236 seconds with 12 queries