Comment on WordPress Hacks by SEO Dave.
To create a template page that will only show the content of a page and nothing else (no theme parts) try this code:
<?php /* Template Name: Blank SEO */ ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php the_content() ;?> <?php endwhile; ?> <?php else : ?> <?php endif; ?>
This is the minimum code needed to show the content of a page.
Name it something like blank-seo.php and upload it to your themes folder (this will work for any WordPress theme).
Create a new page (only works with WordPress Pages, not Blog Posts) and select the Blank SEO template for that page.
Name the Page something relevant and add your squeeze page as the content.
Save it and it should create a page that uses all the HTML elements of your squeeze page and have no WordPress theme elements at all (no header, sidebar, footer etc….). The page will also be linked fro menus etc… like any other page.
I tested this on this site earlier, made a page called SEO Test which after testing I set it to Draft, which interestingly means it’s removed from menus etc… (so no links to it), but still exists.
It shows a single line of text (all I added to the content) plus some text related to a Popularity Plugin I use on this site. Some plugins are added to the end of the content function and this plugin does that.
Had I added a full HTML based page to that page (and disabled the Popularity plugin) it should look like any other static HTML page.
Not the most useful thing to do with WordPress, but shows it works :)
David Law
More Comments by SEO Dave
WordPress Tips
WordPress Last Post Date
Hmm, I’m using this standard WordPress code for the footer area copyright sign and date:
©
The above is within the footer.php file (/wp-content/themes/stallion-responsive/footer.php).
The time bit looks at the date of the last WordPress Post or Page date and uses it for …
Continue Reading WordPress Hacks and Tricks
WordPress Tips
How to Change WordPress Theme Borders
If you use the Stallion Responsive Theme probably (not knowing which borders can’t be 100% sure: assuming below you want to remove borders that have different colours to the background) no need to manually edit any files.
If a small amount …
Continue Reading WordPress Hacks and Tricks
WordPress Tips
WordPress Responsive Slider
The Stallion Responsive slider does sometimes act a bit weird at times, the images don’t fill the box and requires a refresh to work correctly. I don’t know what the cause is, but since sliders use a lot of javascript …
Continue Reading WordPress Hacks and Tricks
WordPress Tips
WordPress Site Hacked How to Fix
Sorry to hear your WordPress site was hacked, did you figure out how it was hacked since there’s nearly always additional back doors left by the hackers so they can hack the site again after you fix the changes? for …
Continue Reading WordPress Hacks and Tricks
WordPress Tips
CSS Borders
If I recall correctly those will be CSS border rules. The widget one is related to the “span.gat_widget” CSS code and the footer one “#footer_stallion” both rules are in the colour CSS file.
Not sure which the partial width one is, …
Continue Reading WordPress Hacks and Tricks
WordPress Tips
Editing WordPress Theme CSS Files
The style.css file isn’t used by Stallion, all the CSS files are under the /stallion-seo-theme/colors/ folder.
Two CSS files are used a layout file layout-***.css and a colour file style-***.css.
The Layout file is set under Stallion Layout Options and the Colour …
Continue Reading WordPress Hacks and Tricks
WordPress Tips
WordPress Comments Manage Subscriptions
I’d forgot to add .html to the comment-subscriptions.html subscription page link, added now so others (and you) can manage your subscriptions. Since I set Larry’s subscription to suspended before writing this comment I suppose he won’t get this notification :-)
David …
Continue Reading WordPress Hacks and Tricks
WordPress Tips
WordPress MU Domain Mapping Plugin DNS Settings?
Posted this problem on the WordPress MU Domain Mapping Forum, waiting on a response so repeating here and will update this post with the solution (assuming I find one).
Trying to setup a test WordPress Mapped installation on a couple of …
Continue Reading WordPress Hacks and Tricks
WordPress Tips
How to Add a Google Custom Search Form to a WordPress Theme
Adding a Google Custom Search form to Talian would require editing the code.
The file to edit is header.php and the code to change
<div id="searchform">
<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<p>
<input name="submit" type="image" src="<?php bloginfo('stylesheet_directory');?><?php _e('/images/' . themecolor() . '/search_button.gif'); ?>" alt="Search …
Continue Reading WordPress Hacks and Tricks
WordPress Tips
Removing WordPress Search Widget
It’s the default WordPress search widget you’ve added to the left sidebar, it’s not compatible with Talian 5.
Appearance >> Widgets : remove the Search widget.
After I finish updating the Stallion SEO Theme I’ll be updating Talian 5 and will use …
Continue Reading WordPress Hacks and Tricks
WordPress Tips
WP Super Cache Plugin Broken
Had a look at your sites code and at the bottom it says
<!– WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! –>
Start by fixing the plugin issue, if that doesn’t fix look …
Continue Reading WordPress Hacks and Tricks
WordPress Tips
Adding Code to the WordPress Theme Footer.php File
Within the file you’ll see some end div’s that look like this
</div>
Put your code above the last one and see how it looks, if that doesn’t look right move up one… Putting above the first end div should put the …
Continue Reading WordPress Hacks and Tricks