1200ug
Forum Replies Created
-
I’ve made the background transparent via the settings page and removing the background colour, but when I add
.myfixed{background:#220e10;}
to the style.css of my child theme nothing happens…Forum: Themes and Templates
In reply to: Stange styling problemI am using hosting it through mamp on local host. Is there anyway I can use chrome developer tools to find out?
Is there any way to restrict the width to the width of the header, rather than it being full width?
Oh yes that now works, thanks a lot!
I was editing it by changing the source files, I wasn’t aware there was a settings file for it. My bad!
Forum: Themes and Templates
In reply to: [Theme: Twenty Eleven] Display category underneath titleI’ve sorted it, I just had to re-arrange content-single.php to the following:
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <?php the_post_thumbnail(); ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php if ( 'post' == get_post_type() ) : ?> <div class="entry-meta"> <?php /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); /* translators: used between list items, there is a space after the comma */ $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); if ( '' != $tag_list ) { $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); } elseif ( '' != $categories_list ) { $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); } else { $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); } printf( $utility_text, $categories_list, $tag_list, esc_url( get_permalink() ), the_title_attribute( 'echo=0' ), get_the_author(), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) ); ?> </div><!-- .entry-meta --> <?php endif; ?> </header><!-- .entry-header --> rest of content-single.php does here
Oh, I thought I was going crazy there for a minute!
I’ve just set
'mysticky_class_selector' => '#access',
but that still doesn’t work. Is it just the one value in mystickymenu/mystickymenu.php that I need to change? No other variables in other files? I had a look but couldn’t see reference to anyI’ve changed that but nothing seems to happen. I cant find ‘.main-navigation’ anywhere in the source of the blog mind, are you sure thats the class?
Forum: Fixing WordPress
In reply to: Featured image Twenty ElevenI commented out the code
echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );.
so it looks like thisif ( is_singular() && has_post_thumbnail( $post->ID ) && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ) ) && $image[1] >= $header_image_width && 1==2) : // Houston, we have a new header image! // echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); else : // Compatibility with versions of WordPress prior to 3.4. if ( function_exists( 'get_custom_header' ) ) { $header_image_width = get_custom_header()->width; $header_image_height = get_custom_header()->height; } else { $header_image_width = HEADER_IMAGE_WIDTH; $header_image_height = HEADER_IMAGE_HEIGHT; } ?> <img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="" /> <?php endif; // end check for featured image or standard header ?>
Yes, I am using a child theme of Twenty eleven.
Yes I have now edited the content_single.php and included the post thumbnail at the top:
article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <?php the_post_thumbnail(); ?> <h1 class="entry-title"><?php the_title(); ?></h1>
thanks very much for your help!!
One more question, is it possible to show sidebar widgets on content_single.php?
Forum: Fixing WordPress
In reply to: Remove 'Leave a Comment'I fixed the problem, I simply commented out the reference to it in the content.php in the child theme.
<?php if ( comments_open() && ! is_single() ) : ?> <!-- <div class="comments-link"> <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> </div>.comments-link --> <?php endif; // comments_open() ?>
Forum: Fixing WordPress
In reply to: Remove 'Leave a Comment'Forum: Fixing WordPress
In reply to: Remove 'Leave a Comment'its on my local server, I can send a screenshot if you give me a few minutes ??
Forum: Plugins
In reply to: [Flickr - Pick a Picture] Featured image does not have attributionSame problem for me
Forum: Fixing WordPress
In reply to: Create a page showing only one categorySorry for the late reply, I managed to get it sorting by adding a menu item and then simply selecting a category to display the category archives.
Thanks for your input though.
Forum: Fixing WordPress
In reply to: Add text under featured imageI had created a child theme already ??
Thanks a lot for your help sam elh, very much appreciated ??
Forum: Fixing WordPress
In reply to: Add text under featured imageThanks for the reply with dedicated code!
I have gone with WP Inject which allows me to search for CC images, and use them not only in my post but as the featured image. It also allows me to download them to my server to save in case the images go offline from the source.