RazelDazel2
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Fourteen] Remove left sidebarIn my opinion, it would be better to remove the sidebar from the site structure completely. This can be done via the functions.php and is much cleaner then doing it via CSS.
This is what you should be seeing:
/** * Register three Twenty Fourteen widget areas. * * @since Twenty Fourteen 1.0 */ function twentyfourteen_widgets_init() { require get_template_directory() . '/inc/widgets.php'; register_widget( 'Twenty_Fourteen_Ephemera_Widget' ); register_sidebar( array( 'name' => __( 'Primary Sidebar', 'twentyfourteen' ), 'id' => 'sidebar-1', 'description' => __( 'Main sidebar that appears on the left.', 'twentyfourteen' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="widget-title">', 'after_title' => '</h1>', ) ); register_sidebar( array( 'name' => __( 'Content Sidebar', 'twentyfourteen' ), 'id' => 'sidebar-2', 'description' => __( 'Additional sidebar that appears on the right.', 'twentyfourteen' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="widget-title">', 'after_title' => '</h1>', ) ); register_sidebar( array( 'name' => __( 'Footer Widget Area', 'twentyfourteen' ), 'id' => 'sidebar-3', 'description' => __( 'Appears in the footer section of the site.', 'twentyfourteen' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="widget-title">', 'after_title' => '</h1>', ) ); } add_action( 'widgets_init', 'twentyfourteen_widgets_init' );Now just remove the part related to the “Primary Sidebar” and it should be looking like this:
function twentyfourteen_widgets_init() { // Register three Twenty Fourteen widget areas. require get_template_directory() . '/inc/widgets.php'; register_widget( 'Twenty_Fourteen_Ephemera_Widget' ); register_sidebar( array( 'name' => __( 'Content Sidebar', 'twentyfourteen' ), 'id' => 'sidebar-2', 'description' => __( 'Additional sidebar that appears on the right.', 'twentyfourteen' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="widget-title">', 'after_title' => '</h1>', ) ); register_sidebar( array( 'name' => __( 'Footer Widget Area', 'twentyfourteen' ), 'id' => 'sidebar-3', 'description' => __( 'Appears in the footer section of the site.', 'twentyfourteen' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h1 class="widget-title">', 'after_title' => '</h1>', ) ); } add_action( 'widgets_init', 'twentyfourteen_widgets_init' );Only problem I am still having with this is that the site description still does not show up correctly. It sits on the bottom of the page to the left. Every CSS and WP hook I tried does not seem to work.
Forum: Themes and Templates
In reply to: [Parament] excert to longthanks Lance,
what have not realized is that in the code example above i pointed the template part to the content instead to the excerpt which is/was the default setting for the original theme.i actually did go so far to create my own excerpt function in the functions.php before i realized it. there already is an excerpt function in WP so there is no need to create one unless you want to customize it.
i wanted the excerpts as short bits to articles in my news feed. instead of having readers scroll through lengthy articles, they can read the excerpts and if they see something they want to know more about they can open the article page.
posted the info over here as well
http://nanoleap.com/2013/05/30/changing-post-meta-information-and-markup/Forum: Plugins
In reply to: [Plugin: Jetpack by WordPress.com] Publicize: Facebook & LinkedIn Issuei am having a similar issue with linkedin. i hope someone has an answer. i am suspecting that the API’s for this are just not available .. yet.
Forum: Themes and Templates
In reply to: [Parament] excert to longany ideas?
Forum: Themes and Templates
In reply to: [Parament] excert to longalso having problems creating page templates.
this is what i have now:<?php /* Template Name: News*/ ?> <?php get_header(); ?> <div id="container" class="contain"> <div id="main" role="main"> <?php query_posts('cat=55'); while ( have_posts() ) : the_post(); ?> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php endwhile; ?> <?php else : ?> <?php get_template_part( 'content', '404' ); ?> <?php endif; ?> <?php comments_template(); ?> </div><!-- end main --> <?php get_sidebar(); ?> </div><!-- end container --> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: Need help with moving WP to a different hostthanks, i’ll check it out. was planning to sign up anyway. thanks for the help everybody
Forum: Fixing WordPress
In reply to: Need help with moving WP to a different hostthis is what is confusing to me. when i go to the WP directory at netfirms to download the db it actually has a different name than any of the db’s that are installed on my hosting plan. i downloaded the one in the directory and exported the one from the hosting plan.
i tried to import both, both failed. i copied the one from the directory to the directory of the new install and get the errors. i changed the wp-config to reflect the db that is running on the new host and still connection errorsForum: Fixing WordPress
In reply to: Need help with moving WP to a different hosti have been skimming through it.
for some reason i am not able to properly import the dbForum: Fixing WordPress
In reply to: moving wordpress database is not workingi have a similar issue, different hosts.
i did not properly update the wp-config.php and would need help with that.
i am getting errors about that and also about the database not being able to find a user account and/or “Error establishing a database connection”.
http://www.nanoleap.comForum: Themes and Templates
In reply to: [GamePress] increase front page post countoh, so it’s not related to the theme but rather a setting in WP. no wonder i couldn’t find it.
Thanks bryan1Forum: Themes and Templates
In reply to: [GamePress] Updating gamepress changed entire sitecould you provide change log information with the update when it’s posted? i did find some change log information but that was after the manual download and digging through the files.
if one know before the upgrade/update what has changed one would know if they are at all effected by it or not.
thanks