Archive

Archive for the ‘Web Administration’ Category

Changing the INove Theme WordPress Style Sheets

October 13th, 2009 1 comment

After wrestling a bit with the WordPress editor I decided the best way to make style sheet changes to the INove WordPress theme was to modify the themes style sheet and reference my custom style in a div element.

Make changes to the INove theme’s style sheet by going to:  Dashboard>Appearance>Editor and under Styles in the right column double click on “Stylesheet (style.css)”.  I had to add the following custom style to the bottom of style.css for it to get recognized.

.command_line {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
background-color: #000000;
padding-left: 8px;
padding-right: 8px;
padding-top: 10px;
padding-bottom: 2px;
}

Update the changes in the INove style sheet and go back to the WordPress editor to add the div elements.

Then

<div class="command_line">my command line text</div>

does the trick.  Also switching back and forth between Visual and HTML view in the WordPress editor doesn’t appear to disturb the div element.

Categories: Web Administration, WordPress Tags:

WordPress – How to Add Navigation Tabs for Categories

August 16th, 2009 1 comment

Although navigation to WordPress categories is easily done through links under the “Categories” section of most blogs, people are so used to using the normal tab or button navigation that it is nice to be able to get to the WordPress categories this way too. Although there appears to be a number of ways to do this out there on the web, and not all successful I might add, by far the easiest way to add category tabs or category button navigation is to use the plugin called pages to link to. Many thanks to Mark Jaquith the author of this plugin.

If your running a later version of WordPress, in my case at the time of this post it was V2.8.4, the easiest way to ad a plugin is to go to Admin/Plugins/Search, type in the plugin name, “Page Links To”, select “Install” under the Actions column of the search results for the plugin you desire and then “Install Now”. Be sure to “Activate Plugin” on the resulting “Installing Plugin” page.

Once the “Page Links To” plugin is installed AND activated go to your “Categories” section of your blog, click on the category of interest then copy the resulting URL from your browser and save for the next step. Create the new WordPress category page by going to Admin/Pages/Add New/ and enter your title name for your WordPress category. Then down at the bottom under the “Page Links To” section enter your category URL you saved into the box named “Point to this URL:”. Give your page an order number to place it where you want in the navigation and check out your new categories page.

Categories: Web Administration, WordPress Tags:

WordPress – Create you own Page Template

August 13th, 2009 No comments

Here is a method if you want to be able to create your own page templates and have them available to choose from when you create a new page.

Assumptions: You have shell access and are in a Linux environment.

Typically one is happy with the default page template but would like to make a modification. Lets start with the default page template, copy it to a new file name and then edit it to be a new page template.

First make a copy of the default page template renaming it. In my case I’m using the Inove theme and they have separated their templates into a subdirectory called “templates”. So we have to touch two files to keep in line with this themes format.

# cd <your wordpress directory>/wp-content/themes/inove

# cp page.php page.custom.php

# vi page.custom.php

Edit the file to look like this:

<?php
/*
Template Name: Page by Category
*/
?>
<?php get_header(); ?>
<?php include(‘templates/page.custom.php’); ?>
<?php get_footer(); ?>

# cd <your wordpress directory>/wp-content/themes/inove/templates

# cp page.php page.category.php

Now make your modifications to page.custom.php under the templates directory and the next time you add a page it will be available to you as a page template.

Categories: Web Administration, WordPress Tags:

WordPress Security – Locking Down Permissions on WordPress Files

April 20th, 2009 No comments

Many WordPress administrators use the popular WordPress security plugin “WP Security Scan”. In doing so you get a new administrative link at the bottom of your WordPress Dashboard labeled “Security”. If you drill down into this menu, Dashboard>Security>Scanner, the WP Security Scan plugin will check your WordPress file and directory permissions and give their recommendations. If you have a number of WordPress web sites this can become a chore to change manually.

Here is a little script to do that for you. It is self explanatory and can be ran even if your not using the WP Security Scan plugin.

Here is the script:

#!/bin/bash

# Secures the WordPress directory.
# Must be ran from the WordPress root directory.
# examples – wordpresschmod.sh html or wordpresschmod.sh blog

if [ $# -ne 1 ]; then
echo
echo “Usage $0
echo “Example $0 html or $0 blog”
echo
exit 1;
fi

DIR=$1
echo
echo “chmod -R 755 $DIR”
echo
chmod -R 755 $DIR
echo
echo “chmod 644 $DIR/.htaccess”
echo
chmod 644 $DIR/.htaccess
echo
echo “chmod 644 $DIR/wp-admin/index.php”
echo
chmod 644 $DIR/wp-admin/index.php
echo
echo “File Permission Security Changes Complete”
echo

exit 0;