Forum Replies Created

Viewing 15 replies - 1 through 15 (of 68 total)
  • Thread Starter anoctave

    (@anoctave)

    I’ve got it fixed. I was trying to do it simply by my own coding, I decided to run it through the SiteOrigin CSS editor, which selects the right element to add things like padding.

    I was also able to get the name of the archive as the archive page title.

    So all is good. Thanks for your help.

    Thread Starter anoctave

    (@anoctave)

    I have put the edited archive.php back. Now the thumbnails are showing on all archive pages. The only problem I have is the top post on each archive page is abutting the header.

    (What I am doing with this site is recreating the original site, which is still active. In this development site, I’m trying to change things that I wasn’t pleased with on the original site. When I get everything done, I am moving the domain name over to the host where I’m developing.)

    I looked at content.php and it does indeed have code for the thumbnail, but obviously the archive page was not using it. I don’t know php well enough to write my own, but looking at the way it’s calling and outputting the content, it doesn’t look like as if there is anyway to put the code I added there. If there is a way to call the thumbnail and the excerpt that might do the trick but, as I say, I don’t know php or wordpress well enough.

    Thank you for looking at this. With the changes I’ve been trying to make, I hope I will be well-enough prepared for a WordPress Camp I’m going to in May.

    Thread Starter anoctave

    (@anoctave)

    sorry. Here it is:

    <?php get_header(); ?>
    archive.php
    1
    <header class="archive-header">
    <div class="cover-container row">
    <div class="inner cover col-md-12">
    <h1 class="cover-heading"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php
    bloginfo( 'name' ); ?></a></h1>
    <p class="lead"><?php bloginfo( 'description' ); ?></p>
    </div>
    </div>
    </header>
    <div class="container blog">
    <div class="row">
    <?php
    $theme_layout = get_theme_mod( 'latte_blog_sidebar', 'full' );
    if ($theme_layout=="left") :
    get_sidebar();
    endif;
    ?>
    <?php if ($theme_layout=="full") : ?>
    <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
    <?php else: ?>
    <div class="col-lg-8 col-md-8">
    <?php endif; ?>
    <?php if ( have_posts() ) : ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <div class="thumbs">
    <?php if ( has_post_thumbnail($post->ID) ): ?>
    <a class="item-featured-image" style="padding-top,padding-bottom:50px;"
    href="<?php esc_url( the_permalink() ); ?>"><?php echo
    get_the_post_thumbnail($post->ID, 'latte-blogposts'); ?></a>
    <?php else: ?>
    <a class="item-featured-image" style="padding-top,padding-bottom:50px;"
    href="<?php esc_url( the_permalink() ); ?>"><img src="<?php echo
    get_template_directory_uri().'/assets/images/287x230.png'; ?>"/></a>
    <?php endif; ?>
    </div>
    <?php get_template_part( 'content', ( post_type_supports( get_post_type(),
    'post-formats' ) ? get_post_format() : get_post_type() ) ); ?>
    <?php endwhile; ?>
    <ul class="pager">
    <?php if( get_previous_posts_link() ) : ?>
    <li class="previous"><?php previous_posts_link(); ?></li>
    <?php endif; ?>
    <?php if( get_next_posts_link() ) : ?>
    <li class="next"><?php next_posts_link(); ?></li>
    <?php endif; ?>
    </ul>
    <?php else : ?>
    <?php get_template_part( 'content', 'none' ); ?>
    <?php endif; ?>
    </div>
    <?php
    if ($theme_layout=="right") :
    get_sidebar();
    endif;
    ?>
    </div>
    </div>
    <?php get_footer(); ?>
    

    Thank you for taking a look at it. Sorry it’s so long.

    Thread Starter anoctave

    (@anoctave)

    Joy,

    Many, many thanks for your help and your patience walking me through this. I now have exactly what I wanted. And I learned a lot.

    Thread Starter anoctave

    (@anoctave)

    Wow, thank you! One final thing and I will be in heaven. I have a tendency to write long titles, so I would like to go with Previous and Next as the link. Do I just take out ‘%title’ or do I replace it with ‘Previous’ and ‘Next’ or something else?

    Thread Starter anoctave

    (@anoctave)

    Joy, Thank you for having patience with me. I replaced the code in single.php with the above code and, at least, I didn’t get a “fatal error” message. In fact, I got no error at all.

    However the previous/next links did not show up on the pages. So, if I’m following what’s supposed to happen, either “get” isn’t getting the link or the echo isn’t working for some reason.

    Hopefully another tweak will do it?

    Thread Starter anoctave

    (@anoctave)

    Thank you so much. I see part of what my error was(wrong template).

    I’ve now looked at single.php and have copied the following code:

    <?php if( get_previous_post_link() || get_next_post_link() ) : ?>
    						<ul class="pager">
    						<?php if( get_previous_post_link() ) : ?>
    							<li class="previous"><?php previous_post_link( '%link', __( '&larr; Previous', 'latte' ) ); ?></li>
    						<?php endif; ?>
    						<?php if( get_next_post_link() ) : ?>
    							<li class="next"><?php next_post_link( '%link', __( 'Next &rarr;', 'latte' ) ); ?></li>
    						<?php endif; ?>
    						</ul>
    					<?php endif; ?>

    I see that this is a generic get the previous/next link.

    The only changes to code I’ve made up to now are puttins inline styles where my stylesheet changes don’t seem to work, so I’m not sure what you mean by

    Don’t put the variables in the function call; just put the values.

    Forget for a moment that I put the code in the wrong template, what should I change to get the result that I’m looking for? I really appreciate the help.

    Thread Starter anoctave

    (@anoctave)

    Thank you for being patient enough to answer my clueless response. I’m unfortunately one of those people who learn best by seeing a real life example.

    I found one in one of the 20xx themes. I copied it from the template, scanned my template and made the changes needed to make it fit my template. And it worked.

    The link you gave me helped me recognize when I saw it, but thereal example helped me understabd what I didn’t get from your link.

    Thanks again.

    Thread Starter anoctave

    (@anoctave)

    Thank you for your response.

    Unfortunately, my attemmpt to show the code in my first post did not print (I used the code/code before and after. Now I will attempt to print the code another way. I am not going to use the <>s in the code. I will use M as < and m as >.

    M div class=”row” m

    M h1 style=”text-align:center;font-weight:bold; font-color:#4b2acc;front-family:EB Garamond; ” m

    News and Events Archive

    M /h1 m

    M /div m

    It is code for the archive category that I need.

    Thread Starter anoctave

    (@anoctave)

    Thank you so much for the quick response and answer. I appreciate it.

    Thread Starter anoctave

    (@anoctave)

    The only problem is they didn’t design my site, I did. And it required some help from the Theme’s designer. Question: are my settings in the database?

    Thread Starter anoctave

    (@anoctave)

    ipower

    Thread Starter anoctave

    (@anoctave)

    Sadly, I was too impatient to wait for a reply and I contacted the tech support of my hosting provider. Big mistake. They’ve bungled it big time. Right now, my major problem is something they’ve done has destroyed the sign-in process in the wordpress installation itself and I can’t log in. They’re telling that to fix this, I might lose all my theme’s settings. This represents months of work.

    Is there any way to fix the log in?

    Thread Starter anoctave

    (@anoctave)

    Ok, I got it. Slow learner. I put the code into the nav php and got the bellows menu along with a repeat of the menu in its old form. So I got brave and eliminated the theme developer’s nav code and voila! only the bellows menu.

    Thread Starter anoctave

    (@anoctave)

    Thank you for this information. I know exactly where the php code is – it’s between the <nav></nav>. What I don’t know is the code I need to put in. What I don’t want to do is mess up the fly-out structure.

    Here is the nav code:

    <?php if( isset($latte_menu_display) && $latte_menu_display != 1 ) : ?>
    
    		<nav class="pmenu pmenu-vertical pmenu-left" id="pmenu">
    			<h3 id="hideLeftPush"><?php _e( 'Menu', 'latte' ); ?> <i class="fa fa-arrow-right"></i></h3>
    			<?php
    			wp_nav_menu(array(
    				'theme_location' => 'primary',
    				'menu' => __( 'Primary Menu', 'latte' ),
    				'fallback_cb' => 'latte_new_setup',
    				'items_wrap' => '<ul class="latte-push-menu">%3$s</ul>'
    			));
    			?>
    		</nav>
    
    		<a id="showLeftPush" class="fa fa-bars"></a>
    
    	<?php endif; ?>

    Could you tell me how to change this code to include the Bellows plugin? I would so appreciate it.

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