Comment on WordPress Page Templates Tutorial by SEO Dave.
I think I know the issue, if you are adding the comment code below the date of the post code you have moved it inside the div with id=”post-entry” which will mess with the padding, so yes a CSS issue.
You could edit the CSS, but an easy fix would be to close the post-entry div add the comment code and reopen the div right after it which would mean the #post-entry CSS won’t affect the comment code.
This will break HTML validation as you aren’t supposed to use an id twice (all ids are supposed to be unique), not aware of any real issues with using an id twice (browsers are smart enough to cope with it) so I’d use it for a quick fix.
Below the code:
edit_post_link('Edit', '| ', ''); ?></div>
Add this
</div> <?php if (comments_open()): ?> <?php if (function_exists('wp_list_comments')): ?> <?php comments_template('', true); ?> <?php else : ?> <?php comments_template(); ?> <?php endif; ?> <?php endif; ?> <div id="post-entry">
This will result in two comment forms, so delete the corresponding code lower down the page between the if and endif.
There’s the page-example.php file for creating this type of page template and with the Stallion 7.0 Page templates work with blog Posts as well, so you won’t have to limit this type of page to static Pages only.
BTW not sure if you tried to add code to your comment, if you did it would be stripped if you didn’t surround it with code tags (an opening and closing code tag set).
An interesting idea, I saw a plugin (or code snippet, forget which) that strips the content from multiple page commented posts. The main post (page 1) shows the full content on the post and the comments for that page, comment page 2, 3, 4 etc… only shows the comments for pages 2, 3, 4 etc… which means there’s less duplicate content generated by having multiple page comments. WordPress core (and Stallion) adds a canonical URL to pages 2, 3, 4 etc… to the main page so Google etc… considers all of the comment pages as the main page. I was thinking removing the content od comment pages 2, 3, 4 etc… would be a bit like a forum output with page 1 describing what the thread is about. Plan to add the code to Stallion as an option.
David
Update: the above is a page template within the Stallion Responsive theme.
More Comments by SEO Dave
WordPress Custom Page Templates
WordPress Squeeze Page Templates
Looks like I missed Mark’s question, will try to cover both.
The WordPress Page Templates built into Stallion WordPress SEO v7.1.1 are also built into Stallion Responsive v8.0 with the addition of some new ones, 20 WordPress Page Templates in v8.0. …
Continue Reading WP Page Templates
WordPress Custom Page Templates
WordPress Contact Page Template
The WordPress contact page template built into Stallion is a work in progress, haven’t been able to get it to work correctly for all servers.
One of those page template features that works for some out the box, others it doesn’t …
Continue Reading WP Page Templates
WordPress Custom Page Templates
WordPress Sitemap Page Template
Closest to what you want are the Stallion Sitemap Page Templates.
There’s several that give different output
One has the latest comments linked at the top and the posts at the bottom.
There’s a template that only shows the posts.
Example output : https://stallion-theme.co.uk/stallion-responsive-sitemap/
David …
Continue Reading WP Page Templates
WordPress Custom Page Templates
WordPress Theme Sitemap Page Templates
Don’t understand your question? There are no built in short codes with Stallion, if you had them in a previous theme/plugin they won’t be available in Stallion directly.
If it’s a sitemap there’s built in sitemap Page templates.
Under Dashboard: Page >> …
Continue Reading WP Page Templates
WordPress Custom Page Templates
Override WordPress CSS Styles
You could override CSS styles in a number of ways.
An easy one is add this near the top of the WordPress Page template you created.
<style type="text/css">
.post-content a:link, .post-content a:visited {
text-decoration: none;
}
.post-content a:hover, .post-content a:active {
text-decoration: none;
}
</style>
I’m assuming you made a …
Continue Reading WP Page Templates
WordPress Custom Page Templates
WordPress Child Themes
You have to edit offline (on your computer) and upload using FTP, the WordPress editor doesn’t show CSS files outside the main them folder (only shows CSS files in /stallion-seo-theme/ and the Stallion colour scheme files are in a deeper …
Continue Reading WP Page Templates
WordPress Custom Page Templates
Editing WordPress Theme Template Files
Try adding some HTML before assuming it wouldn’t work. Your other option is edit the template file.
There’s over 1,000 comments on this site and fonts has been covered many times, easiest way to find something is use Google do a …
Continue Reading WP Page Templates
WordPress Custom Page Templates
Creating HTML Code for WordPress
It’s HTML code, so if you wanted an image at the top create some image code, loads of HTML tutorials online.
You would paste the HTML code into the post edit form, like any content, like what you’ve done for the …
Continue Reading WP Page Templates
WordPress Custom Page Templates
WordPress Page Templates
The WordPress Static Page Blank Sales No Sidebars page template is a stand alone WP template, basically all the code is within one file rather than loading the header.php file etc…
The file is
page-sales.php
That template is designed so you can add …
Continue Reading WP Page Templates
WordPress Custom Page Templates
How to Create a WordPress Page Template
Doh, when I fixed the code error I mentioned above accidentally reactivated one of the Stallion header areas that should be disabled.
I’ll be changing that particular Stallion Page Template in the next update. It’s really easy to fix, simple case …
Continue Reading WP Page Templates
WordPress Custom Page Templates
WordPress Theme Page Template Bug Fix
Found the problem, when I was updating code in Stallion 7.0.1 ran a search and replace that added mistakes to a few of the page templates which I missed, I fixed them in Stallion 7.1.
Easiest solution is update to the …
Continue Reading WP Page Templates
WordPress Custom Page Templates
WordPress Static Page Templates and Theme Updates
Stallion Static Page Templates don’t ‘load’ in their own right, they are like any WordPress Static Page, but with a different template.
The Stallion Static Page Blank Sales no Sidebars is similar to this post, but the sidebar code is removed, …
Continue Reading WP Page Templates