Christine357
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Remove Tags From Excerpt<body class="home page page-id-5 page-template page-template-homeTemplate-php logged-in admin-bar no-customize-support custom-background custom-font-enabled full-width">That?
Forum: Fixing WordPress
In reply to: Remove Tags From ExcerptIt is set as Front Page. Here is the code:
<?php /** * Template Name: Page of Posts * * for a child theme of Twenty_Twelve */ get_header( 'home' ); ?> <div id="primary" class="site-content"> <div id="content" role="main"> <div id="aboutHurkyWrap"> <div>Mission Statement</div> <p>We seek success; not to step in the path of the established, but to leap away from the prevalent into a class of our own. By developing a self-nurturing, ecosystem, we’ll harvest the finest natural ingredients to create our handcrafted brews and ciders. More importantly, it is essential that we form a companionship within our community, help and donate to those in need, all while supporting the increasing health of our local environment. As we climb toward perfection, we'll make a point to share our product with all the great people around us.</p> </div> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args= array( 'category_name' => 'Uncategorized', // Change this category SLUG to suit your use; or see for query parameters http://codex.wordpress.org/Class_Reference/WP_Query#Parameters 'paged' => $paged, 'posts_per_page' => 3, 'post_type' => 'post', ); query_posts($args); if( have_posts() ) : ?> <div id="blogWrapTitle"><a href="http://hurkybird.com/blog-2/">Blog</a></div> <?php while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <!-- Adds the 140x140 thumbnail/featured image --> <div class="excerpt-thumb"> <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"> <?php the_post_thumbnail('excerpt-thumbnail', 'class=alignleft'); ?> </a> </div> <div id="title_summary-wrap"> <header class="entry-header"> <h1 class="entry-title"> <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?> </h1> <?php twentytwelve_entry_meta(); ?> </header><!-- .entry-header --> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> </div> <footer class="entry-meta"> <!-- meta was here --> <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> </footer><!-- .entry-meta --> </article><!-- #post --> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> <?php else : ?> <article id="post-0" class="post no-results not-found"> <header class="entry-header"> <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1> </header> <div class="entry-content"> <?php the_post_thumbnail(); ?> <p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> </article><!-- #post-0 --> <?php endif; wp_reset_query(); ?> </div><!-- #content --> </div><!-- #primary --> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: Remove Tags From ExcerptThanks alchymyth for the information!
Trouble is, for some reason it is not recognizing that the template is being used or whatever because the code in the else statement is being run.
if ( $tag_list ) { //$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); if(is_page_template('homeTemplate.php')){ $utility_text = __( '%3$s | by %4$s | in %1s' ); } else{ $utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); } } elseif ( $categories_list ) { $utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); } else { $utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); }I can %100 guarantee that ‘homeTemplate’ is the template file that is being used. Perhaps I did something wrong with the code? It seems fine to me, but I can’t imagine why it is not working. In the editor, underneath the name of my template it shows the filename, (homeTemplate.php). That is what I am using.
Forum: Themes and Templates
In reply to: Header Not Quite RightThanks! I hate how padding does that, couldn’t figure it out.
Forum: Themes and Templates
In reply to: "sticky" NavigationI discovered something new about this. The “sticky” navigation only doesn’t work properly when I am logged into the site (with the top bar with the links to the Dashboard etc). Does anyone know why this might be? I wouldn’t want it to stop working for others who have a registered account.
Forum: Themes and Templates
In reply to: Same Navigation Different StylesWell that’s why the primary thing I’d change is the ID of the navigation. In the parent theme stylesheet there is no styles assigned to #site-navigation which is the ID of my navigation bar.
At any rate, what is broken is the button functionality. The button will either still appear and nothing will happen when you click it or the button will appear and the nav links will be sitting outside it with no connection to the button (the button still does nothing)
In this case, I copied over all the @media screen portions that had to do with .main-navigation and changed the class (both in the navigation bar and in the styles) and still same issue: it breaks in mobile version by the links sit outside the non-functioning button.
Forum: Hacks
In reply to: twentytwelve_entry_meta() Change@wpyogi my second reply was due to my post being pushed from the 1st page…which in my opinion decreases chance for reply even greater. But maybe there are people that scroll through additional pages searching for unanswered posts, who knows.
Parse error: syntax error, unexpected T_ENDIF in (location on server)functions.php on line 71
Above is the error I was receiving. I didn’t understand why it had a problem with the endif (I’m still a rookie with PHP and thought there was some need for it in this case after an if statement) so I went ahead and removed it to further see the issue and it worked. I looked back at the original code and had missed an if statement above
if ( ! function_exists( 'twentytwelve_entry_meta' ) ) :that was wrapping the code I was using.
Thank you bcworkz for the tip about wp-config and enabling it so I can see syntax errors.
Forum: Hacks
In reply to: twentytwelve_entry_meta() ChangeWhy was my post moved to Plugins and Hacks? I’m just trying to troubleshoot how to edit a functions.php file.
Forum: Hacks
In reply to: twentytwelve_entry_meta() ChangeI know the change I want to make and how to do it within the function. All I am asking for is help how to put it in my functions.php of my child theme. I have to use filters don’t I? When I paste it in and make the change I want it errors the entire website when I update the file.
Forum: Fixing WordPress
In reply to: Menu Toggle – Not workingSo I dug deeper into this and discovered that the menu stops working when the
<?php get_footer(); ?>is removed.
Does anyone know why this is? I would like to know to further my understanding on how it works so I don’t mess it up if I want to edit the footer or to make it possible to again remove the footer.
I can’t find any indication in the footer code as to why it would have any effect on the munu toggle button in the header code.
Forum: Fixing WordPress
In reply to: bloginfo() Image HelpI got it, with a little more digging I found that the template_directory is for the parent theme. So I just moved the image.
Forum: Fixing WordPress
In reply to: Remove "Older Posts" LinkThank you so much!
Forum: Fixing WordPress
In reply to: Excerpt not showing […]Well that is silly. But cool, I removed the hand-written excerpt and the “Continue reading” link appeared, thank you again!
Forum: Fixing WordPress
In reply to: Excerpt not showing […]My excerpts are hand-written, yes, in that I make the excerpt in the optional box when I create the post. The excerpt shows up but no […] or anything. The code in my functions.php is:
function change_excerpt_more() { function new_excerpt_more($more) { // Use .read-more to style the link return '<span class="continue-reading"> <a href="' . get_permalink() . '">Continue Reading »</a></span>'; } add_filter('excerpt_more', 'new_excerpt_more'); } add_action('after_setup_theme', 'change_excerpt_more');Nothing about it was changed.
The output of the site is as it sounds: no […] or “Continue reading” or anything to link to the full post asides from the title of it.
Forum: Fixing WordPress
In reply to: Full-width Page Template, No Sidebar Page TemplateWell, I’m not sure what changed but it seems to be working now. The only thing is is just on that page the lil WordPress header thing at the top that links to the Dashboard and all that is missing and on all my pages is a title link of my site located above the Navigation (which is still above the header logo by default), and I am not sure why but I’ll look into that.
I might have confused it with my “blog” page that is normal, as I recently swapped the two and made my customized one the “home” page so I apologize about that. Thank you so much though for all your help!