gaznev2000
Forum Replies Created
-
Same here ??
Forum: Themes and Templates
In reply to: Css Styling "The Events Calendar" Inline styles not working.Hi Andrew I tried changing the widths to px from percentage but its still the same.
Could it be how it’s laid out in the php?
Forum: Themes and Templates
In reply to: How to target a indivual title in CSS?Perfect, putting an “a” selector after my H1 tag worked.
Thanks for your help
Regards
GaryForum: Themes and Templates
In reply to: How to target a indivual title in CSS?Thanks for the quick reply guys.
I will try it out.Forum: Plugins
In reply to: [The Events Calendar] Featured Image box not showing when I add a new event.I managed to fix this issue by placing ‘tribe_events’ to ‘my post thumbnails function’ in my Function.php file.
Full code is:
<?php add_theme_support( 'post-thumbnails', array( 'post', 'page', 'tribe_events' ) ); ?>
Forum: Themes and Templates
In reply to: How to make a drop doen menu in the kubrick Template?Thanks alchymyth, I will try it out.
Forum: Themes and Templates
In reply to: How to make a drop doen menu in the kubrick Template?I am quite limited to this site as the site i am working on is on that template and its a massive site.
Ok i manged to fix the issue i had to use the wp_reset_query(); after the endif; and I i used an array in the loop like this to:
<div class="sub-stories-holder"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'cat' => 26, 'paged' => $paged ); query_posts($args); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <div id="sub-post"> <div class="post-content"> <div class="post-thumbnail"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_post_thumbnail(); ?></a> </div> <div class="post-copy"> <div class="post-title"> <a style="color:#000000;" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a> </div> <span style="text-decoration:none;"><a style="color:#bab69f;" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Read more ></a></span> </div> </div> </div> </div> <?php endwhile; ?> <?php wp_pagenavi(); ?> <?php else : ?> <!-- <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php /*?><?php get_search_form(); ?><?php */?>--> <?php endif; ?> <?php wp_reset_query(); ?>
Thanks for your help, is this your full time job :-). It seems every time I run in to problems you seem to pop up. You are as they say a WPL (word-press-legend).
I tried to wp_reset but it changed nothing. The site I’m woking on is so old its based on the Kubric theme, could that be the issue? how would you go about implanting the wp_Query in to the code below, should i rewrite it from scratch? I only ask as I’ve never used wp_Query before,
<?php if ($catID) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=26&paged=$paged"); } ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <div id="sub-post"> <div class="post-content"> <div class="post-thumbnail"> <a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_post_thumbnail(); ?></a> </div> <div class="post-copy"> <div class="post-title"> <a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a> </div> <span style="text-decoration:none;"><a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Read more ></a></span> </div> </div> </div> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('? Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries ?') ?></div> </div> <?php else : ?> <!-- <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php /*?><?php get_search_form(); ?><?php */?>--> <?php endif; ?>
Regards
GaryThe full code of the slider is
<div class="homeHolder"> <ul id="myRoundabout"> <?php $catID = 188; if ($catID) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=$catID&paged=$paged"); } ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <li class="item1"><a>"> <span class="img-title"><?php the_title(); ?></span><?php the_post_thumbnail(); ?></a> <?php endwhile; ?> <?php else : ?> <!-- <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php /*?><?php get_search_form(); ?><?php */?>--> <?php endif; ?> </div>
Im not sure if the query is reset properly. I’m relatively new to nesting loops and i still don’t really know if i’m doing it correctly.
The full page code is above; there has been a mod on it saying “partially broken ” but i can assure you that that is the full code in the page-tempate
Forum: Themes and Templates
In reply to: Post width suddenly reduced, no idea whyThanks what i first thought but its happening on every post that I create. even if i just type “test”.
Thanks for your help guys
Forum: Themes and Templates
In reply to: Post width suddenly reduced, no idea whyDo you have any idea why would effect only new posts and not old posts?
Forum: Themes and Templates
In reply to: Post width suddenly reduced, no idea whyit has 50 errors but none i can see relate to the post content.
Forum: Themes and Templates
In reply to: Post width suddenly reduced, no idea whySorry Chad, I mean that when I make a page members only it doesn’t restrict the page. The page is still visible whether when I am logged out.