Because of the multiple categories that are within the site library, I am changing to a “Previous Page” button below the categories that I stacked using this CSS:
footer.entry-meta .cat-links a,
footer.entry-meta .tags-links a {
display: block;
float: left;
clear: both;
}
.tags-links:before,
.cat-links:before {
content: ”;
}
That works fine.
I am now using GP-Hooks to add the button for “Previous Page” right below the above CSS placing it in the After Content hook. It works fine also but the button appears in the main category page of which I don’t want to show so I changed the below code from “category” to “single” and the button still appears in the main category page.
How can I prevent the button from showing on the main category page?
<?php if ( is_single (”) ) : ?>
<input type=”button” value=”Previous Page” onclick=”history.back(-1)” />
<?php endif; ?>
Any help is appreciated and thanks in advance.