Warning: hash_equals(): Expected user_string to be a string, null given in /home/jisus093/public_html/blog/wp-includes/pluggable.php on line 1263
Some useful Wordpress tips | Jee Soo Shin

Some useful WordPress tips

I am making yet another website which will be my new official composer’s website replacing this one.

I’ve been playing around with .php purely relying on internet resources, and thought I got pretty far…until my 5 hours’ work vanished in one type-error.. There was no way I could restore it.. so……….,

back to square one!  :D

As I was repeating the whole process, I realised how handy it would have been to store all the information I’ve gathered regarding php codes for wordpress.. so I’m going to do just that in this post, which will grow in time.  It will be mainly for my own reference, but I’d be more than delighted if anyone else makes a good use of it! :)

WordPress adds a title attribute to text links which is identical to the text of the link itself.

This can mean that when you hover over a text link, a tooltip pops up containing the text from the title attr, obscuring the links on the page. This does not usually look very good, and can obscure subnavigation links in drop down menus, thus reducing usability and causing irritation.

It doesn’t seem to have any positive value – I can’t imagine that it is of any benefit in terms of accessibility, for example.

You can turn them off with the following in the theme functions file:

function remove_title($input) {

return preg_replace_callback(‘#\stitle=["|\'].*["|\']#’,

create_function(

‘$matches’,

‘return “”;’

),

$input

);

}

add_filter(‘wp_list_pages’,'remove_title’);

This handy advice was found at http://azoomer.com/disabling-the-tooltip-in-the-dropdown-menu-of-a-child-theme/

If you want to remove the search box, please open header.php and remove the line

<?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

This advice was found here

In my new website, the search box had a rss feed icon next to it, so I deleted both functions by deleting this from header.php:

<div id=”search” class=”grid_2 last”>

<?php get_template_part( ‘searchform’ ); // Search Form (searchform.php) ?> <div class=”icon-popup”> <a href=”<?php bloginfo(‘rss2_url’); ?>

” title=”<?php _e(‘Syndicate this site using RSS’, ‘Brightpage’); ?>

” id=”rss-icon”><?php _e(‘<abbr title=”Really Simple Syndication”>RSS</abbr>’); ?></a> <em><?php _e(‘Subscribe’, ‘Brightpage’); ?></em> </div> <!– end div .icon-popup –> </div> <!– end div #search –>

also, I wanted to say ‘read more’ instead of ‘read this post’ below each excerpt of posts on my first page,

so I went to postmeta.php and changed the text there.

and some screenshots to rid off my insomnia:



Best of luck!



Related Posts Plugin for WordPress, Blogger...

Leave a Reply