Forum Replies Created

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

    (@skywayne)

    I figured it out . . . my htaccess file didn’t allow hot linking, and that was throwing everything off.

    Thread Starter SkyWayne

    (@skywayne)

    Thanks, Andi. You are a lifesaver! I have seen your website. I have a few projects coming up, and you are on the top of my list . . . .

    One last question and I will be out of your hair: To get the search to display excerpts, you said to modify the template page and change “the_content()” to “the_excerpt()”

    Which template page? I assume you mean page.php (which is below). Is that correct?

    <?php get_header() ?>
    
    <div class="row">
    
    	<!-- content -->
    	<div id="content" class="column ninecol">
    
    		<?php switch_breadcrumbs(); ?>
    
    		<?php while ( have_posts() ) : the_post(); ?>
    
    			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    				<header>
    					<h1 class="entry-title"><?php the_title(); ?></h1>
    				</header>
    				<div class="entry-content">
    					<?php the_content(); ?>
    					<?php wp_link_pages(array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'switch' ) . '</span>', 'after' => '</div>' ) ); ?>
    				</div>
    			</article>
    
    		<?php endwhile; // end of the loop. ?>
    
    		<?php switch_content_nav(); ?>
    
    	</div>
    	<!-- /content -->
    
    	<?php get_template_part('sidebar', 'page'); ?>
    
    </div><!-- /row -->	
    
    <?php get_footer() ?>
    Thread Starter SkyWayne

    (@skywayne)

    The question was not answered over here, so I’m not sure what I was supposed to do. I apologize if it was a breach of decorum, but Andi was actually helping solve my issue over at the other thread. Please reopen it.

    What I really need to understand is how to delete the page class from my search results. We were in the middle of discussing that issue.

    Thread Starter SkyWayne

    (@skywayne)

    Thank you so much, Andi. I’m very excited now . . . just two more things:

    How do I edit the files so that pages are not included in search results?

    I have no idea how to do that! 🙂

    On the excerpt issue, which template page? My theme has the following .php files:

    404 Template
    Main Index Template
    Page Template (page.php)
    Full Width Page Template
    Homepage Template
    Snippets Page Template
    Testimonials Page Template

    Page.php has this code (and I assume you would want me to change the first instance of the_content (), is that correct?:

    <?php get_header() ?>
    
    <div class="row">
    
    	<!-- content -->
    	<div id="content" class="column ninecol">
    
    		<?php switch_breadcrumbs(); ?>
    
    		<?php while ( have_posts() ) : the_post(); ?>
    
    			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    				<header>
    					<h1 class="entry-title"><?php the_title(); ?></h1>
    				</header>
    				<div class="entry-content">
    					<?php the_content(); ?>
    					<?php wp_link_pages(array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'switch' ) . '</span>', 'after' => '</div>' ) ); ?>
    				</div>
    			</article>
    
    		<?php endwhile; // end of the loop. ?>
    
    		<?php switch_content_nav(); ?>
    
    	</div>
    	<!-- /content -->
    
    	<?php get_template_part('sidebar', 'page'); ?>
    
    </div><!-- /row -->	
    
    <?php get_footer() ?>
    Thread Starter SkyWayne

    (@skywayne)

    Thank you so much for your response.

    Here is an example of a search results page with jumbled results:

    http://www.mwpatton.com/?s=Homestead+exemption

    It would really be great if search results were displayed in short snippets. Not sure how to make that happen, but it would be wonderful.

    Thread Starter SkyWayne

    (@skywayne)

    Is there any way for me to standardize the code that’s in my theme so that it conforms and has the missing class of “post” that you mentioned?

    Here is the code from Search.php (I can also provide the code from Searchform.php if needed):

    <?php get_header() ?>
    <div class="row">
    	<!-- content -->
    	<div id="content" class="column ninecol">
    		<?php if (have_posts()) : ?>
    			<?php switch_breadcrumbs(); ?>
    			<?php while (have_posts()) : the_post(); ?>
    				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    				 <?php
    			        $format = get_post_format();
    			        if (false === $format) $format = 'standard';
    		        ?>
    				<?php get_template_part('content', $format); ?>
    				</article>
    			<?php endwhile; ?>
    			<?php switch_content_nav(); ?>
    		<?php else : ?>
    			<article id="post-0" <?php post_class() ?>>
    				<header>
    					<h1 class="entry-title"><?php _e('Nothing Found', 'switch'); ?></h1>
    				</header>
    				<div class="entry-content">
    					<p><?php _e('Sorry, but no entries matched your search criteria. Please make sure all words are spelled correctly or try again with some different keywords.', 'switch' ); ?></p>
    				</div>
    			</article>
    		<?php endif; ?>
    	</div>
    	<!-- /content -->
    	<?php get_sidebar() ?>
    </div><!-- /row -->
    <?php get_footer() ?>

    Here is the code that is in the header:

    <div id="mainmenu">
    			<div class="container">
    				<div id="togglemenu"><a href="#">Browse or search website</a></div>
    				<nav>
    					<?php
    						if (has_nav_menu('main-menu')) {
    							wp_nav_menu(array('theme_location' => 'main-menu', 'container' => '', 'menu_class' => 'sf-menu'));
    						} else {
    					?>
    					<ul class="sf-menu">
    						<?php wp_list_pages('title_li='); ?>
    					</ul>
    					<?php } ?>
                                              <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    				</nav>
    			</div>
    		</div>
    	</header>
    Thread Starter SkyWayne

    (@skywayne)

    Okay, I’m just unclear on what page I would that JS.

    Is there a place in the editor that I can add it to take care of the problem, or would I add that JS in the plugin and then apply it to all pages (with the assumption that search results are displayed on a page)?

    Thread Starter SkyWayne

    (@skywayne)

    It’s still okay . . .

    What do you suggest?

    Thread Starter SkyWayne

    (@skywayne)

    The guy who built my site actually purchased the theme from themeforest, so it’s not custom built.

    Anyhow, I’m interested in any solution that won’t increase my site’s load time, since it is already painfully slow . . . .

    That’s a “Yes” to your rubbish solution.

    Thread Starter SkyWayne

    (@skywayne)

    Thank you SO much for your reply.

    There isn’t any way for me to contact the person who built my site. I paid to have the site built. The guy did a horrible job and then disappeared. I’ve basically been trying to fix the broken pieces and have been learning as I go. It’s been a painfully slow process.

    Not sure what I can do at this point. Any suggestions on where and how I can put the required <div> elements in place?

    Check your hotlink protection. I had more than one site on my hosting account, and I had enabled hotlink protection (to keep others from stealing bandwidth). The icons, even though stored in the local WP file, are still hosted under the main domain. In my case, I had not added my new domain to the list of permissible sites to access image files.

    By just adding the domain to the list of permissible sites, the icons in the image editor showed up right away.

    Hope that works!

    Best,
    SkyWayne

    [sig moderated as per the Forum Rules]

    Thread Starter SkyWayne

    (@skywayne)

    I ended up using a php enabled widget up in that area, just because it’s easier to style the background, etc.

    Both of those worked well in terms of getting the page title to the right place, but the styling is way off. The page title is now just as big as the site title . . . .

    How can I now style the output? Preferably using code in the same widgetized area.

    Thanks, I really appreciate!

    Thread Starter SkyWayne

    (@skywayne)

    Here is an example of what I want to accomplish, where the word “Resources” appears in a top container.

    Sorry, I forgot to include the link: http://catalysttheme.com/resources/

    Thread Starter SkyWayne

    (@skywayne)

    Just copied and pasted the code from your link above in child theme functions.php (between the last “}” and the “endif.” Worked beautifully! Thank you so much!

    Thread Starter SkyWayne

    (@skywayne)

    esmi–Thank you for that advice. All of my revisions were made via a child theme.

    alchymyth–I have a feeling that you are addressing my issue dead center, but unfortunately, your response is pretty far over my head. I am an extreme newbie. When I check for h1 and h2 tags on my site (using http://www.seositecheckup.com), it reports that my homepage has no h1 or h2 tags.

    I will try playing around with firebug to see if I can figure out how to get these tags included in my site. I was hoping for a solution that I could incorporate into each post or page (something like a plugin that would allow me to specify h1 and h2 tags), since I really suck at code at this point.

    Otherwise, if you can specifically tell me how to adjust the body_class() or post_class()–I’m assuming in style.css–then I would be eternally grateful.

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