Been fiddeling around again with my WordPress-theme files from Binarymoon. The theme ‘regulus’ you know hehe. Want something extra on your frontpage? Are you using the Wp-admin option ”excerpts”? Then this one is for you. Open up the regulus theme file [functions.php]. Look for this line function bm_the_excerpt_reloaded($excerpt_length=120, $allowedtags=’<img>,<a>,<ul>,<ol>,<li>,<blockquote>’ The bit of $allowedtags is interesting. [...]
Been fiddeling around again with my WordPress-theme files from Binarymoon. The theme ‘regulus’ you know hehe. Want something extra on your frontpage? Are you using the Wp-admin option ”excerpts”? Then this one is for you. Open up the regulus theme file [functions.php]. Look for this line
$allowedtags=’<img>,<a>,<ul>,<ol>,<li>,<blockquote>’
The bit of $allowedtags is interesting. It so happens tobe (pardon the pun) that this tells WP what to leave out on your frontpage and what to keep in. Show or no show. Standard it comes with '<a>,<ul>,<li>,<blockquote>'. I just extended it a bit to suite my needs. So can you! Just add a tag or 2. Remember to enclose tags in brackets and only use their primary tag-name like <img> and not <img src=>. Only the primary or first tag-name suffices.
Keep on coding…
And aah yes! As I was recently remembered by….
Keep watching WordPress – stuff on:









RSS feed







