greg2008
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to code a paragraph into content sectionYou don’t need a div, that’s just for styling. If you are not inside PHP tags (
<?php ?>) then it should just pick up the text as HTML and display it.Can you post the top half of your code up to and including the
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>Also, are you using a static homepage?
Forum: Fixing WordPress
In reply to: [gallery] image resize issueDidn’t make any difference.
They are thumbs though as on that settings page I changed the size of the thumbs (above the tick) and the images resized, but no proportions, still centre of image at 150×150
Forum: Fixing WordPress
In reply to: My home page is all messed up! Help!What do you mean by messed up?
I’m viewing in Firefox 3.0.7 (Ubuntu) and everything lines up nice and neatly.
I see an image over stepping the column lines, and a few links .. is that what you mean?
Forum: Fixing WordPress
In reply to: Image size on previewShould probably have mentioned.. I use the “more” option, so show a small paragraph of each article if not on the single.php page.
But often the text is wrapped around an image, and in preview (single.php) the image is still full size and so making the “more” option not quite as I would like it.I want a small image with a small paragraph.
I thought of one way, when images are uploaded into new posts (gallery) I could also upload a smaller thumb, and thumb is used on previews and other as normal on single.php.
Again, advanced coding/MYSQL isn’t an issue, I just don’t know the WP core setup very well to know where to begin
Forum: Themes and Templates
In reply to: div id = postsThanks.
Using firebug to see the DIV, the only thing it does is offer a container around the collective posts, with of course some padding with the append/prepend.
I don’t like the idea of having unused code, but I do understand providing unused hooks could be helpful to some people within a publicly used CMS.
As with any code, I prefer to know a bit more about it before messing with it. Especially in complex setups like WordPress where code is called and defined from various places.
But as I cannot find CSS for it and no-one has stated it’s an integral part of the code I might just rip it out altogether.Cheers
Forum: Themes and Templates
In reply to: div id = postsIt’s actually “postS” not “post”, but yes I found the code you are referring to:
<div class="post" id="posts-<?php the_ID(); ?>">But in some template files I have there’s also a direct use of the ID without the PHP:
<div id="posts" class="span-16 prepend-1 append-1">Is this simply the Corporate theme using an ID that doesn’t exist? If so, as it’s the theme’s template files calling the theme’s CSS I would have thought that to be bad.
Forum: Fixing WordPress
In reply to: weird wrap issueFor anyone reading this, here is my solution
In my theme’s style.css was the following code :
.post .postcontent p{ clear: both; margin-bottom: 1em; }The clear both on the default P (paragraphs) was indeed making the floated text next to the image drop below the image as soon as I inserted a new line (double return).
Spacing is of course needed to allow neat spacing in the text, even next to the image.
I simple commented this line out/* clear: both; */and now the text still wraps next to the img, but paragraphs don’t break the float.Use
<div style="clear: both;"></div>whenever you want to clear any floated elements.Weird way of doing it, but there you go. I would have preferred to simply be able to press return as many times as I wanted to instert as many spaces (line breaks) as required, but obviously this doesn’t work in the core php of the software.
CheersForum: Fixing WordPress
In reply to: weird wrap issueI troubleshoot on other forums myself, and know a link to the site always helps, but its all passworded atm.
I did do some further digging into this style I have and it has some changes from the default themes that are weird.
I also found the postcontent class for a paragraph has clear both. Maybe that was causing an issue the time I managed to get it to wrap but only for one paragraph
I’ll have a look into that a bit and see if I can resolve it that way. I’ll also try the default theme as you suggested, as I do think this theme have a few weird issues (it’s the ‘corporate’ one from this site)
Cheers for the reply
Forum: Fixing WordPress
In reply to: weird wrap issueThere must be a simple solution to this.
The whole point of wordpress and similar software is to create blogs, especially in a news style.So to be able to have an image, then full control over the text next to it is surely one of the most desired features (along with many other things of course).
So why does it seem so hard to make this work?
I simply want an image with text next to it, and to be able to have paragraphs within the wrapped text so it looks neat.As said, I even tried my own float divs, but just cant get this to work. I would have thought this would be a standard setup thing by default
Forum: Fixing WordPress
In reply to: weird wrap issueyeah.
One attempt was copying the CSS classes from the default theme style. Still didn’t work.
It does wrap nicely in the visual editor, just not the blog itself