Forum Replies Created

Viewing 15 replies - 1 through 15 (of 37 total)
  • Thread Starter bryanmcclure

    (@bryanmcclure)

    Here’s what I have. So are you suggesting I turn off “Enable Minify”?

    Thread Starter bryanmcclure

    (@bryanmcclure)

    No worries @bcworkz. Thanks for giving your input!

    Thread Starter bryanmcclure

    (@bryanmcclure)

    Awesome! I was able to get it figured out now. Thank you!

    Thread Starter bryanmcclure

    (@bryanmcclure)

    I’m a bit at a loss here. I added the_posts_pagination(); to my single.php file. And nothing. I tried it surrounded by the php tag, nothing.

    Would it be helpful to post the code from my full functions.php file as well as the code from my full archive.php file?

    Thread Starter bryanmcclure

    (@bryanmcclure)

    @bcworkz
    I’m not sure what you mean. What does “zero navigation output” mean?

    This was a template that we installed years ago, so I didn’t remove the pagination from the original template. I have no idea what’s happening here and why it isn’t automatically there.

    Thread Starter bryanmcclure

    (@bryanmcclure)

    I tried adding in

    function the_posts_pagination( $args = array() ) {
        echo get_the_posts_pagination( $args );
    }
    

    to my functions page and it just crashed the site. I grabbed that from the link you sent me above Joy. Is that the wrong code?

    Thread Starter bryanmcclure

    (@bryanmcclure)

    Hey Joy,
    When I say pagination, my goal is to get the blog page to display the next set of 10 blog posts (or have previous/next allowing for the user to be able to go to the previous or next 10 posts).

    As you can see at our link here, http://www.lisatemple.com/category/blog/, it does not display that.

    On the individual post page, it would be nice to have a previous/next post navigation, which it also doesn’t currently have.

    • This reply was modified 7 years, 1 month ago by bryanmcclure.
    • This reply was modified 7 years, 1 month ago by bryanmcclure.
    Thread Starter bryanmcclure

    (@bryanmcclure)

    Sorry, the page I’m aiming for was the archive page (though the single.php page isn’t displaying pagination either). That code is this:

    <?php get_header(); ?>
    
    <div id="columns">
      <?php if (have_posts()) : ?>
      <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
      <?php /* If this is a category archive */ if (is_category()) { ?>
      <h3>Category: <span>
        <?php single_cat_title(); ?>
        </span></h3>
      <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
      <h3>Tag: <span>
        <?php single_tag_title(); ?>
        </span></h3>
      <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
      <h3>Archive: <span>
        <?php the_time('F jS, Y'); ?>
        </span></h3>
      <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
      <h3>Archive: <span>
        <?php the_time('F, Y'); ?>
        </span></h3>
      <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
      <h3>Archive: <span>
        <?php the_time('Y'); ?>
        </span></h3>
      <?php /* If this is an author archive */ } elseif (is_author()) { ?>
      <h3>Author Archive</h3>
      <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
        <h3>Blog Archives</h3>
        <?php } ?>
      <?php endif; ?>
      <div class="search2">
          <?php include (TEMPLATEPATH . '/searchform.php'); ?>
        </div>
      <div style="padding: 0pt 0pt 10px;" class="clr"></div>
      <div id="centercol">
        <?php if (have_posts()) : ?>
        <?php while (have_posts()) : the_post(); ?>
        <div class="box post" id="post-<?php the_ID(); ?>">
          <div class="content">
            <div class="post-title">
              <h2><a href="<?php the_permalink(); ?>" rel="title" title="<?php the_title_attribute(); ?>">
                <?php the_title(); ?>
                </a></h2>
              <div class="post-data">In
                <?php the_category(', ') ?>
                | on
                <?php the_time('F, d, Y'); ?>
                | by Lisa Temple
                | <a class="post-view" href="<?php the_permalink(); ?>" title="View <?php _e('Comments'); ?>" rel="category tag">
                <?php comments_number(0, 1, '%'); ?>
                <?php _e('Comments'); ?>
                </a> </div>
              <!--/post-date --> 
            </div>
            <!--/post-title -->
            <div class="clr"></div>
            <!--/post-thumbnail-->
            <?php if ( has_post_thumbnail() ) { ?>
            <div class="pic fl"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
              <?php the_post_thumbnail(); ?>
              </a>
              </div>
            <?php } ?>
            <!--/post-pic -->
            <div class="post-excerpt">
              <?php the_excerpt(); ?>
            </div>
            <!--/post-excerpt -->
            <div class="post-leav"><a href="<?php the_permalink(); ?>" title="<?php _e('Leave Your'); ?> Response">read more</a> <a href="<?php the_permalink(); ?>" title="<?php _e('Leave Your'); ?> Response">comments</a></div>
            <?php global $sociable; echo $sociable->get_links(); ?>
            <div class="clr"></div>
          </div>
          <!--/content --> 
        </div>
        <!--/box -->
        <?php endwhile; ?>
        <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
        <?php /*
            <ul>
    			<li><?php next_posts_link('&laquo; Older Entries') ?></li>
    			<li><?php previous_posts_link('Newer Entries &raquo;') ?></li>
    		</ul>
    		*/ ?>
        <?php else : ?>
        <div class="box post">
          <div class="content">
            <div class="post-title">
              <h1>No Posts Were Found</h1>
            </div>
          </div>
        </div>
        <?php endif; ?>
      </div>
      <!--/centercol -->
      <?php get_sidebar(); ?>
      <div class="clr"></div>
    </div>
    <!--/columns -->
    <?php get_footer(); ?>
    

    However, on both of the pages, when I remove
    <?php get_sidebar(); ?>
    the sidebar goes away, but it doesn’t do anything to change the pagination.

    Thread Starter bryanmcclure

    (@bryanmcclure)

    Thank you. That helped. I think I’ve got it now.

    Thread Starter bryanmcclure

    (@bryanmcclure)

    You might be right. I was having trouble figuring out how to post a question in general. If you can direct me to the correct area, that’d be helpful. Thank you!

    Thread Starter bryanmcclure

    (@bryanmcclure)

    I moved the pertinent code to the main.css file and now have the site functioning the way I’d like it to. I very much appreciate all your help!

    Thread Starter bryanmcclure

    (@bryanmcclure)

    Would there be an issue in the header of my style.css file?

    Theme Name: Elza Child
    Theme URI: https://www.famethemes.com/themes/Elza/
    Template: Elza
    Author: FameThemes
    Author URI: http://www.famethemes.com
    Description: Elza is an outstanding creative and flexible WordPress one page theme well suited for business website, portfolio, digital agency, product showcase, freelancers and everyone else who appreciate good design. The theme overall is an elegant and classic one, a fine example of Bootstrap 4 WordPress theme which compatibility with latest version of WooCommerce. (Live preview : http://www.famethemes.com/preview/?theme=Elza)
    Tags: one-column,two-columns,left-sidebar,right-sidebar,fluid-layout,responsive-layout,custom-menu,featured-images,full-width-template,sticky-post,theme-options,threaded-comments,translation-ready,blue,light
    Version: 1.2.2.1463781705
    Updated: 2016-05-20 22:01:45

    All within comment tags.

    Thread Starter bryanmcclure

    (@bryanmcclure)

    -style.css
    -Elza-child (wp-content/themes/Elza-child/)
    -Elza-child (wp-content/themes/Elza-child/)

    Thread Starter bryanmcclure

    (@bryanmcclure)

    I attempted duplicating it and still no changes. I’m attempting to resolve it without having to get in touch with my client about their server. They’ve seemed to not want to give me that information throughout building it. If worse comes to worse I will approach them again about it.

    But is there anything I’m maybe missing in my style.css header

    /*
    Theme Name: Elza Child
    Theme URI: https://www.famethemes.com/themes/Elza/
    Template: Elza
    Author: FameThemes
    Author URI: http://www.famethemes.com
    Description: Elza is an outstanding creative and flexible WordPress one page theme well suited for business website, portfolio, digital agency, product showcase, freelancers and everyone else who appreciate good design. The theme overall is an elegant and classic one, a fine example of Bootstrap 4 WordPress theme which compatibility with latest version of WooCommerce. (Live preview : http://www.famethemes.com/preview/?theme=Elza)
    Tags: one-column,two-columns,left-sidebar,right-sidebar,fluid-layout,responsive-layout,custom-menu,featured-images,full-width-template,sticky-post,theme-options,threaded-comments,translation-ready,blue,light
    Version: 1.2.2.1463781705
    Updated: 2016-05-20 22:01:45
    
    */

    Thread Starter bryanmcclure

    (@bryanmcclure)

    I use Dreamweaver and then ftp it there as well.

Viewing 15 replies - 1 through 15 (of 37 total)