Graycode
Forum Replies Created
-
Forum: Plugins
In reply to: [AddToAny Share Buttons] Twitter Standalone Button misalignedThat makes sense… I’ll check the above and update the button. Thanks for the heads up.
Forum: Fixing WordPress
In reply to: Difficulty limiting post excerptsActually I have worked it out thanks to https://artarmstrong.com/blog/2011/01/02/how-to-modify-the_excerpt-in-wordpress/
Put this in your functions.php and modify the 150 according to how much of the excerpt you wish to display.
//Modify the length of the_excerpt function new_excerpt_length($length) { return 150; } add_filter('excerpt_length', 'new_excerpt_length'); //Modify the "Read More" link of the_excerpt function new_excerpt_more($more) { $new = str_replace("Continue reading ", "Read More", $more); $new = str_replace('<span class="meta-nav">→</span>', "", $new); return $new; } add_filter('excerpt_more', 'new_excerpt_more');
Forum: Fixing WordPress
In reply to: Difficulty limiting post excerptsThanks…
Does anyone have a solution to my last point so I can state this as ‘resolved’?
Can you state how much of an excerpt you wish to display?
Forum: Fixing WordPress
In reply to: Difficulty limiting post excerptsIt works but not accurately.
I used the Visual editor to place that code in but its like it cuts it off but adds the rest to the end lol.
I’ve added several spaces where the space is meant to be so you can see what i mean. https://test.akeytodesign.com/blog/
If its an unnecessary hassle, I can leave it but I’d like to be as accurate to that image i showed you as possible.
You’ve been so helpful thank you.
Forum: Fixing WordPress
In reply to: Difficulty limiting post excerptsAwesome! Works brilliantly, thanks Aaron. ??
Lastly, can I amend how much of that excerpt is displayed?
Forum: Fixing WordPress
In reply to: Difficulty limiting post excerptsThank you. Yes, I changed it and although it looks good, that image needs to display as I showed in the link.
I’d need it to show the image associated with the post and an excerpt underneath.
Forum: Fixing WordPress
In reply to: Difficulty limiting post excerptsSo to clarify, would you write it as the link demonstrates but just changing the above?
I have an image in my content so would this be affected?
Forum: Fixing WordPress
In reply to: Difficulty limiting post excerptsI’m trying to accomplish having just a preview of my blog posts visible on the blog page.
See this link- https://test.akeytodesign.com/wp-content/uploads/2013/01/Yato-Blog-excerpt.jpg
Right now, it’s displaying the entire blog post and I want it to show as above.
Forum: Fixing WordPress
In reply to: Difficulty limiting post excerptsThanks Aaron, I did see that but it seems to only take a snippet of the excerpt off. I wonder if it is the placement of the code but this is how the code looks after I’ve put it in.
<div id="blogpage"> <?php query_posts('posts_per_page=2'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post-block-blog"> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <p class="post-date"><?php the_time('j M Y'); ?></p> <?php the_content(); ?> <?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,25); ?> <p class="readmore"> <a href="<?php the_permalink(); ?>" title="Continue reading this article">Read more</a></p> </div> <?php endwhile; ?>
I have even reduced and increased the number just to see where I could be going wrong… but still cant figure it out! :s
Looked again and saw this crucial line missing from my header.php file :
<body <?php body_class(); ?>>
Now it works! ??
I’m trying to avoid coding it for the use of the person who will eventually look after this site. They arent code savvy and i thought with 3.0 it was a great addition… but i am missing something, right?!
It’s not a path issue. I have uploaded this file into my media library and am calling it from Appearance > Background but to no avail.
I have hard coded it using CSS as that was what i was doin initially, but if i try using the editor, it doesnt work….
Forum: Themes and Templates
In reply to: Body background image and div background imageI did- but it seems its not interesting enough to be answered.
Good luck japanapproved
Forum: Themes and Templates
In reply to: Body background image and div background imageSadly for me, the issue remains….
Andrew, were you able to look at my issue? :S
Forum: Themes and Templates
In reply to: Body background image and div background imageI’ve just changed my permissions now and it works for me too, however, I changed it to 666 and it broke my site, i went back and changed it to 755 and now i can see you r background avatar!
I need to to check it without hardcoding the CSS and if that works… ??