home, tag archive improvements
This commit is contained in:
22
archive.php
22
archive.php
@@ -1,10 +1,8 @@
|
||||
<?php get_header();?>
|
||||
|
||||
|
||||
<!-- section -->
|
||||
<section id="content">
|
||||
|
||||
|
||||
<?php
|
||||
if (is_category()) {
|
||||
$ttl = single_cat_title("", false);
|
||||
@@ -20,20 +18,28 @@
|
||||
|
||||
// esc_html_e($ttl, 'text-domain')
|
||||
?>
|
||||
<h1 class="archivetitle <?php echo $cl; ?>"><?php echo $ttl; ?></h1>
|
||||
|
||||
<?php
|
||||
if (is_tag()) {
|
||||
<div class="archivetitle <?php echo $cl; ?>">
|
||||
<h1><?php echo $ttl; ?></h1>
|
||||
<?php if (is_tag()) : ?>
|
||||
<!-- Show images on tag archives: -->
|
||||
<object data="<?php echo get_template_directory_uri(); ?>/img/clip/<?php echo $ttl; ?>_desktop.svg" type="image/svg+xml">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/clip/<?php echo $ttl; ?>_desktop.png" />
|
||||
</object>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
// add description box if it's a tag
|
||||
if (is_tag()) {
|
||||
echo '<div class="archivedescription">';
|
||||
echo tag_description();
|
||||
echo "</div>";
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php get_template_part('loop');?>
|
||||
|
||||
<?php get_template_part('loadmore');?>
|
||||
|
||||
Reference in New Issue
Block a user