Wordpress How To

From KnowWiki
Jump to: navigation, search

[edit] How to secure Wordpress

  1. Create a second admin and delete the default 'admin' user
  2. Secure wp-config.php by adding
    <files wp-config.php>
    Order deny,allow
    deny from all
    </files>
    
    to the .htaccess file
  3. Install Login LockDown plugin and configure it

[edit] How to alter or remove a title from a specific page

Edit page.php on your theme, look for

<h1><?php the_title(); ?></h1>

(or whatever it may be)

For a static header on the blog home only change to this:

<?php if ( is_home() ) { ?>
        <h1>Page title</h1>
<?php } ?>

Or to exclude it from a specific page change to this:

<?php if ( !is_page('page_name_slug_or_id') ) { ?>
<h1><?php the_title(); ?></h1>
<?php } ?>

You could use the same technique for a header (browser header) look for <div id="header"> in header.php

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox