yuedesign
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: htaccess redirect errorsnow my pages have stopped working again: owenyue.com/gallery
Forum: Fixing WordPress
In reply to: htaccess redirect errorsowenyue.com is working fine again for some reason, www. still not working though
Forum: Fixing WordPress
In reply to: Changed theme and now site is whiteSeems to be working now !
Forum: Themes and Templates
In reply to: WordPress posts on index in boxesThanks for the quick response
How do i give each post a class of first, second or third and then repeat it after 3 posts ?
Forum: Themes and Templates
In reply to: Post div spilling out of containerThank you !!!!!!
Forum: Themes and Templates
In reply to: Alternating post background colourevery other post, so black, white, black, white etc.
Forum: Themes and Templates
In reply to: Posts on last page look differentI’ve done that and it’s pretty much valid excluding the occasional
<br>instead of<br />Thanks for your help though
Forum: Themes and Templates
In reply to: Can't remove underline from H1I added the style attribute to the permalink
Forum: Themes and Templates
In reply to: Posts repeating<?php /** * @package dsframework * @since dsframework 1.0 */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dsframework' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> <?php if ( 'post' == get_post_type() ) : ?> <div class="entry-meta"> <?php the_category(', '); ?> ยท Taken on the <?php the_time('jS')?> of <?php the_time('F')?>, <?php the_time('Y') ?> by <?php the_author(); ?> ยท <font style="border-bottom: 1px solid rgba(0, 0, 0, 0.05);"><?php comments_popup_link('leave a comment', '1 comment', '% comments');?></font> </div> <?php endif; ?> </header> <?php if ( is_search() ) : ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'dsframework' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'dsframework' ), 'after' => '</div>' ) ); ?> </div> <?php endif; ?> </article>Forum: Themes and Templates
In reply to: Posts repeating<?php
/**
* @package dsframework
* @since dsframework 1.0
*/
?><article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<header class=”entry-header”>
<h1 class=”entry-title”>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘dsframework’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_title(); ?></h1><?php if ( ‘post’ == get_post_type() ) : ?>
<div class=”entry-meta”>
<?php the_category(‘, ‘); ?> ยท Taken on the <?php the_time(‘jS’)?> of <?php the_time(‘F’)?>, <?php the_time(‘Y’) ?> by <?php the_author(); ?> ยท <font style=”border-bottom: 1px solid rgba(0, 0, 0, 0.05);”><?php comments_popup_link(‘leave a comment’, ‘1 comment’, ‘% comments’);?></font>
</div>
<?php endif; ?>
</header>
<?php if ( is_search() ) : ?>
<div class=”entry-summary”>
<?php the_excerpt(); ?>
</div>
<?php else : ?>
<div class=”entry-content”>
<?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘dsframework’ ) ); ?>
<?php wp_link_pages( array( ‘before’ => ‘<div class=”page-links”>’ . __( ‘Pages:’, ‘dsframework’ ), ‘after’ => ‘</div>’ ) ); ?>
</div>
<?php endif; ?>
</article>
` that’s the template of where the post’s are as they’re not on the home pageForum: Themes and Templates
In reply to: Custom functionsSo far, if I create a function in the functions file with the variable ‘date’, and then call the variable on the post template file underneath the content function it works fine, as the variable has already been defined in the post content. But i’m not sure how i’ll be able to define the variable when calling the function in the post info section (just below header and above content) ?
Forum: Themes and Templates
In reply to: Custom functionsp.s, at the moment i’m using the normal date function for when the photo’s are taken
Forum: Themes and Templates
In reply to: Random space on first postResolved now but thanks, the automatically applied aligncenter class had already been defined in the theme’s css with the clear declaration ๐
Forum: Themes and Templates
In reply to: Random space on first posti’ve applied
cleared: none;to the image and the space has gone so thank you! all though i’m still not sure where the clear style came from, and also why it only occurs on the first post ?Forum: Themes and Templates
In reply to: Random space on first postall images from all posts have the same css as far as i know, so why is it just happening with the first post ?