kylechadha
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Adding other .css files to a child themeHaha not a bad idea compared to the experience I’ve had with this “premium” theme!
Forum: Themes and Templates
In reply to: Adding other .css files to a child themeGot it, thanks WPyogi. Unfortunately the author of this particularly theme has not replied to a single support request from myself or the ~15 other people active on his forums.
Looks like it’s time to get a better theme.
Thanks for the guidance.
Forum: Fixing WordPress
In reply to: URL for all my blog posts?I wish I understood what you did with the code but it is a bit beyond me haha.
Forum: Fixing WordPress
In reply to: URL for all my blog posts?Yes, works 100%! Thanks Hakkim!
All good: https://www.kylechadha.com/blog/
Forum: Fixing WordPress
In reply to: URL for all my blog posts?Actually was looking through the theme forums… and found a simple (albiet slightly less elegant) workaround.
Just adding all posts to a new category, ‘Blog’, and then having the blog link on the home page link to https://kylechadha.com/category/blog/
The only annoying part is all posts will show the category ‘Blog’!
Forum: Fixing WordPress
In reply to: URL for all my blog posts?Actually here’s the link to the theme directly: https://www.ads-software.com/themes/minimatica
Forum: Fixing WordPress
In reply to: URL for all my blog posts?Hrm… still looks the same.
There’s also content.php and content-gallery.php — might they have something to do with it?
Content.php:
<?php /** * Displays the post content. Used as fallback for post formats * * @package WordPress * @subpackage Minimatica * @since Minimatica 1.0 */ ?> <div id="content"> <div class="entry-header"> <a class="colorbox" href="<?php $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); echo $thumbnail[0] ?>"> <?php the_post_thumbnail( 'single-thumb' ); ?> </a> <aside class="entry-meta"> <ul> <li><?php _e( 'Written by', 'minimatica' ); ?> <?php the_author_posts_link(); ?></li> <li><?php _e( 'on', 'minimatica' ); ?> <time datetime="<?php the_time( 'Y-m-d' ); ?>"><?php the_time( get_option( 'date_format' ) ); ?></time></li> <li><?php _e( 'Filed under', 'minimatica' ); ?> <?php the_category( ', ' ); ?></li> <?php edit_post_link( __( 'Edit', 'minimatica' ), '<li>', '</li>' ); ?> </ul> <?php the_tags( '<div class="entry-tags">', ' ', '</div>' ); ?> </aside><!-- .entry-meta --> <div class="clear"></div> </div><!-- .entry-header --> <section class="entry-content"> <?php the_content(); ?> <div class="clear"></div> <?php wp_link_pages( array( 'before' => '<p class="pagination">' . __( 'Pages' ) . ': ' ) ); ?> </section><!-- .entry-content --> <?php comments_template(); ?> </div><!-- #content -->
content-gallery.php
<?php /** * Displays the content of posts with gallery format * * @package WordPress * @subpackage Minimatica * @since Minimatica 1.0 */ ?> <div id="content"> <section class="entry-content"> <?php minimatica_post_gallery(); ?> <?php the_content(); ?> <div class="clear"></div> <?php wp_link_pages( array( 'before' => '<p class="pagination">' . __( 'Pages' ) . ': ' ) ); ?> </section><!-- .entry-content --> <div class="entry-header"> <aside class="entry-meta"> <ul> <li><?php _e( 'Posted by', 'minimatica' ); ?> <?php the_author_posts_link(); ?></li> <li><?php _e( 'on', 'minimatica' ); ?> <time datetime="<?php the_time( 'Y-m-d' ); ?>"><?php the_time( get_option( 'date_format' ) ); ?></time></li> <li><?php _e( 'Filed under', 'minimatica' ); ?> <?php the_category( ', ' ); ?></li> </ul> <?php the_tags( '<div class="entry-tags">', ' ', '</div>' ); ?> </aside><!-- .entry-meta --> <div class="clear"></div> </div><!-- .entry-header --> <?php comments_template(); ?> <div class="clear"></div> </div><!-- #content -->
Forum: Fixing WordPress
In reply to: URL for all my blog posts?<?php /** * The Main Loop * * Used as fallback if no specific loop file found * * @package WordPress * @subpackage Minimatica * @since Minimatica 1.0 */ ?> <?php if( have_posts() ) : ?> <div id="content" role="main"> <?php while( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <?php if( has_post_thumbnail() ) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"> <?php the_post_thumbnail( 'homepage-thumb' ); ?> </a> <?php endif; ?> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <aside class="entry-meta<?php if( has_post_thumbnail() ) : ?> folded<?php endif; ?>"> <?php _e( 'By', 'minimatica' ); ?> <?php the_author_posts_link(); ?> <?php _e( 'on', 'minimatica' ); ?> <time datetime="<?php the_time( 'Y-m-d' ); ?>"><?php the_time( get_option( 'date_format' ) ); ?></time> </aside><!-- .entry-meta --> </header><!-- .entry-header --> <section class="entry-summary"> <?php the_excerpt(); ?> </section><!-- .entry-summary --> <footer class="entry-footer"> <a class="more-link" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php echo __( 'Continue reading', 'minimatica' ) . ' →'; ?></a> </footer><!-- entry-footer --> </article><!-- .post --> <?php endwhile; ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="posts-nav" class="navigation"> <div class="nav-previous"><?php next_posts_link( '← ' . __( 'Older Posts', 'minimatica' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer Posts', 'minimatica' ) . ' →' ); ?></div> <div class="clear"></div> </div><!-- #nav-above --> <?php endif; ?> </div><!-- #content --> <?php else : ?> <div id="content"> <div id="post-0" <?php post_class(); ?>> <div class="entry-content"> <p><?php _e( 'The content you were looking for could not be found.', 'minimatica' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> </div><!-- .post --> </div><!-- #content --> <?php endif; ?>
Thanks so much for helping Hakkim, I appreciate it!
Forum: Fixing WordPress
In reply to: URL for all my blog posts?Getting very close! Only the formatting is off now.
Can see the difference here:
https://www.kylechadha.com/blog/
https://www.kylechadha.com/2013/Forum: Fixing WordPress
In reply to: URL for all my blog posts?Apologies, this is the code I have:
<?php /* * Template Name: Blog Page * Description: Custom Blog Page by muah, Kyle Chadha. */ get_header(); ?> <?php if( ( 'gallery' == minimatica_get_option( 'category_view' ) ) && ( get_query_var( 'cat' ) != minimatica_get_option( 'blog_category' ) ) ) : ?> <div id="slider"> <?php get_template_part( 'loop', 'slider' ); ?> </div><!-- #slider --> <?php else : ?> <div class="title-container"> <h1 class="page-title"><?php single_cat_title(); ?></h1> </div><!-- .title-container --> <div id="container"> <?php get_template_part( 'loop', 'category' ); ?> <?php get_sidebar(); ?> <div class="clear"></div> </div><!-- #container --> <?php endif; ?> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: URL for all my blog posts?The black bar came back, making the blog page look more normal — but it still doesn’t load the posts. https://www.kylechadha.com/blog/
To clarify, I should copy all the code from category.php and overwrite everything in blog.php besides the comment at the top?
This is the code I have in blog.php now:
get_header(); ?> <?php if( ( 'gallery' == minimatica_get_option( 'category_view' ) ) && ( get_query_var( 'cat' ) != minimatica_get_option( 'blog_category' ) ) ) : ?> <div id="slider"> <?php get_template_part( 'loop', 'slider' ); ?> </div><!-- #slider --> <?php else : ?> <div class="title-container"> <h1 class="page-title"><?php single_cat_title(); ?></h1> </div><!-- .title-container --> <div id="container"> <?php get_template_part( 'loop', 'category' ); ?> <?php get_sidebar(); ?> <div class="clear"></div> </div><!-- #container --> <?php endif; ?> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: URL for all my blog posts?Hrmm… I don’t really have any experience doing this, but I took a stab at it based on the link you provided. I made a copy of ‘home.php’ and renamed it ‘blog.php’, and edited out the if/else condition where it seemed to be deciding between the two views. I then added the “Template Name” text in a comment. I created a page named ‘Blog’ and set the custom template as ‘Blog Page’ … but, alas, it doesn’t seem to be working:
This is the code in ‘blog.php’:
<?php /* * Template Name: Blog Page * Description: Custom Blog Page by muah, Kyle Chadha. */ get_header(); ?> <div id="container"> <?php get_template_part( 'loop', 'index' ); ?> <?php get_sidebar(); ?> <div class="clear"></div> </div><!-- #container --> <?php get_footer(); ?>
Originally, home.php had:
<?php /** * Template to display the default posts page * * @package WordPress * @subpackage Minimatica * @since Minimatica 1.0 */ get_header(); ?> <?php if( 'gallery' == minimatica_get_option( 'homepage_view' ) ) : ?> <div id="slider"> <?php get_template_part( 'loop', 'slider' ); ?> </div><!-- #slider --> <?php else : ?> <div id="container"> <?php get_template_part( 'loop', 'index' ); ?> <?php get_sidebar(); ?> <div class="clear"></div> </div><!-- #container --> <?php endif; ?> <?php get_footer(); ?>
Any thoughts on what I’m doing wrong?
Thanks in advance.