Philljc
Forum Replies Created
-
Forum: Plugins
In reply to: [WP YouTube Lyte] How can I use this plugin in a theme?That did it, thanks!
May I ask why you’re using widths for the players, and why there isn’t a 100% width? If there is I apologise, I wasn’t able to find it.
When I used the following (in conjunction with a container), it worked perfectly in my responsive layout for desktop/iPad/iPhone:
.fourthree .lyte, .lyte {
position: inherit !important;
}Thanks
Forum: Plugins
In reply to: [WP YouTube Lyte] How can I use this plugin in a theme?If I use:
<?php if(function_exists(‘lyte_parse’)) { echo lyte_parse($videoId); } ?>
It just shows the video ID on the page π
Forum: Themes and Templates
In reply to: is_front_page problemCan you elaborate on why that wont work?
As I said, if I use either piece of code on its own, it’s fine, why would it break in a conditional statement?
[Bump deleted]
Forum: Fixing WordPress
In reply to: Author name outside of loop?Nevermind, figured it out by myself, thanks!
<?php get_header(); ?> <div id="contentwrap"> <div id="content"> <div class="posts"> <?php the_post(); ?> <div class="post"> <div class="postcontent"> <div class="story"> <h2><?php echo get_the_author_link(); ?></h2> <?php rewind_posts(); ?> <?php while ( have_posts() ) : the_post(); ?> <h3 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Permalink to %s', 'shape'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <?php endwhile; ?> </div> </div> <div class="clear"></div> </div> <!--Post ends --> <?php if(function_exists('wp_paginate')) { wp_paginate(); } ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: Author name outside of loop?Actually, using the contents of that entire file from TwentyTen doesn’t even return any results, I tried already to combine the two in a way and I got the same result, nothing
Forum: Fixing WordPress
In reply to: Widget breaks searchThat fixes the search and kind of defeats the purpose of having it as a custom widget, and there are other PHP widgets I need to use
Forum: Fixing WordPress
In reply to: Tags for the following?All good, a restart of XAMPP fixed it for some reason, thanks!
Forum: Fixing WordPress
In reply to: Tags for the following?Works brilliantly π
The only thing is the thumbnail doesn’t seem to show. I’ve activated get_post_thumbnail and I can choose the image, it just doesn’t show up.
I am putting all of this in a blank sidebar, does it need to be encapsulated in anything to work?
Thanks again
Forum: Fixing WordPress
In reply to: Including text in search boxPerfect! Thanks
Forum: Fixing WordPress
In reply to: Category imageAll good, I did it with jQuery.
$(“.category:contains(‘Review’)”).css({backgroundImage: ‘url(“/wp-content/themes/shape/images/catreview.jpg”)’});
$(“.category:contains(‘News’)”).css({backgroundImage: ‘url(“/wp-content/themes/shape/images/catnews.jpg”)’});
$(“.category:contains(‘Article’)”).css({backgroundImage: ‘url(“/wp-content/themes/shape/images/catarticle.jpg”)’});
etc, with a backup JPG as a default if they have JS off.
Forum: Fixing WordPress
In reply to: jQuery in WordPressYay! That fixed it, awesome!
Thank you!