front page category titles are clickable

This commit is contained in:
Ross Trottier 2024-08-28 17:58:33 -06:00
parent b0fa6a1384
commit dfb764563d

View File

@ -5,7 +5,7 @@
<div class="st-article-section-topper"></div> <div class="st-article-section-topper"></div>
<section class="st-article-section-grid"> <section class="st-article-section-grid">
<section class="st-article-section st-article-section-highlight"> <section class="st-article-section st-article-section-highlight">
<h2 class="st-article-section-title">Latest <a href="<?php echo home_url() . '/articles/'; ?>" class="st-article-section-category-link">></a></h2> <h2 class="st-article-section-title"><a href="<?php echo home_url() . '/articles/'; ?>" class="st-article-section-category-link">Latest</a> <a href="<?php echo home_url() . '/articles/'; ?>" class="st-article-section-category-link">></a></h2>
<?php <?php
query_posts('showposts=1'); query_posts('showposts=1');
if (have_posts()) : while (have_posts()) : the_post(); if (have_posts()) : while (have_posts()) : the_post();
@ -85,7 +85,7 @@
$section_category = 'News'; $section_category = 'News';
$section_category_id = get_cat_ID($section_category); $section_category_id = get_cat_ID($section_category);
?> ?>
<h2 class="st-article-section-title"><?php echo $section_category; ?> <a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2> <h2 class="st-article-section-title"><a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link"><?php echo $section_category; ?></a> <a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2>
<?php <?php
$post_section_three_featured_args = array( $post_section_three_featured_args = array(
'showposts' => 1, 'showposts' => 1,
@ -163,7 +163,7 @@
$section_category = 'Cycling'; $section_category = 'Cycling';
$section_category_id = get_cat_ID($section_category); $section_category_id = get_cat_ID($section_category);
?> ?>
<h2 class="st-article-section-title"><?php echo $section_category; ?><a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2> <h2 class="st-article-section-title"><a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link"><?php echo $section_category; ?></a><a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2>
<?php <?php
$post_section_three_featured_args = array( $post_section_three_featured_args = array(
'showposts' => 4, 'showposts' => 4,
@ -212,7 +212,7 @@
$section_category = 'Industry'; $section_category = 'Industry';
$section_category_id = get_cat_ID($section_category); $section_category_id = get_cat_ID($section_category);
?> ?>
<h2 class="st-article-section-title"><?php echo $section_category; ?> <a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2> <h2 class="st-article-section-title"><a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link"><?php echo $section_category; ?></a> <a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2>
<?php <?php
$post_section_three_featured_args = array( $post_section_three_featured_args = array(
'showposts' => 1, 'showposts' => 1,
@ -301,7 +301,7 @@
$section_category = 'Running'; $section_category = 'Running';
$section_category_id = get_cat_ID($section_category); $section_category_id = get_cat_ID($section_category);
?> ?>
<h2 class="st-article-section-title"><?php echo $section_category; ?> <a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2> <h2 class="st-article-section-title"><a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link"><?php echo $section_category; ?></a> <a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2>
<?php <?php
$post_section_three_featured_args = array( $post_section_three_featured_args = array(
'showposts' => 1, 'showposts' => 1,
@ -381,7 +381,7 @@
$section_category = 'Training'; $section_category = 'Training';
$section_category_id = get_cat_ID($section_category); $section_category_id = get_cat_ID($section_category);
?> ?>
<h2 class="st-article-section-title"><?php echo $section_category; ?> <a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2> <h2 class="st-article-section-title"><a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link"><?php echo $section_category; ?></a> <a href="<?php echo get_category_link($section_category_id); ?>" class="st-article-section-category-link">></a></h2>
<?php <?php
$post_section_three_featured_args = array( $post_section_three_featured_args = array(
'showposts' => 4, 'showposts' => 4,