• i am trying to change the “READ POST” buttons’ text to say “READ MORE” here and it shows the same on other category pages.

    i am having trouble finding where to do this? wouldn’t it be on the category template? this theme doesn’t have a category.php, but it does have an archive.php in which i can’t find evidence of this button.

    am i looking in the right place? in case it helps, i’ll paste in archive.php.

    <?php if(isset($_GET['ajax']) and $_GET['ajax'] == 1):?>
        <?php while (have_posts()) : the_post(); ?>
            <?php get_template_part('blocks/content', get_post_type()); ?>
        <?php endwhile; ?>
        <?php $link = get_custom_next_posts_link('view more posts')?>
        <?php if($link):?>
            <a href="<?php echo $link; ?>" class="next-href">view more posts</a>
        <?php endif;?>
    <?php else:?>
        <?php get_header(); ?>
    
        <div class="subnav toppo">
          <ul>
    <?php
    
    $category_id = get_queried_object_id();
    $args = array('child_of' => 392);
    $categories = get_categories( $args );
    foreach($categories as $category) {
    
      if ($category_id === $category->term_id) {
        $addedClasses = 'current';
      }
        echo '<li class="' . $addedClasses .'"><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a></li>';
        $addedClasses = '';
    }
    
    ?>
    
          </ul>
        </div>
    
        <div class="heading blog-heading" style="background-image: url('https://csazcontent.wpengine.com/wp-content/uploads/2018/03/header-730.png');">
            <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
            <?php /* If this is a category archive */ if (is_category()) {
    
    if ( post_is_in_descendant_category( 392 ) ) {
        // do something
      ?>  <h1 class="inset-header">Policy & Data</h1> <?php
    } else {
      ?> <h1 class="inset-header"><?php single_cat_title(); ?></h1> <?php
    } ?>
    
            <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
            <h1><?php printf(__( 'Posts Tagged ‘%s’', 'collegesuccessarizona' ), single_tag_title('', false)); ?></h1>
            <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
            <h1><?php _e('Archive for', 'collegesuccessarizona'); ?> <?php the_time('F jS, Y'); ?></h1>
            <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
            <h1><?php _e('Archive for', 'collegesuccessarizona'); ?> <?php the_time('F, Y'); ?></h1>
            <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
            <h1><?php _e('Archive for', 'collegesuccessarizona'); ?> <?php the_time('Y'); ?></h1>
            <?php /* If this is an author archive */ } elseif (is_author()) { ?>
            <h1><?php _e('Author Archive', 'collegesuccessarizona'); ?></h1>
            <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
            <h1><?php _e('Blog Archives', 'collegesuccessarizona'); ?></h1>
            <?php } ?>
        </div>
    
        <div class="container main-content-container">
    
            <!-- <div id="content" class="mod"> -->
            <div class="mod">
              <p><?php echo category_description( $category_id ); ?></p>
    
                <?php if (have_posts()) : ?>
    
                    <div data-ajaxholder="posts">
                        <?php while (have_posts()) : the_post(); ?>
                            <?php get_template_part('blocks/content', get_post_type()); ?>
                        <?php endwhile; ?>
                    </div>
                    <?php $link = get_custom_next_posts_link('view more posts')?>
                    <?php if($link):?>
                        <div class="more-box">
                            <a href="<?php echo $link; ?>" class="button" data-ajaxlink="posts">view more posts</a>
                        </div>
                    <?php endif;?>
    
                <?php else : ?>
                    <?php get_template_part('blocks/not_found'); ?>
                <?php endif; ?>
            </div>
    
            <!-- <?php get_sidebar(); ?> -->
        </div>
    
        <?php get_footer(); ?>
    <?php endif;?>
    

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘can’t find a page’s template’ is closed to new replies.