Posted by Dawns Web Designs on July 8, 2006 at 1:44am
I'm currently using Blue Marine on my site. I like the overall set-up but have a problem with the way the pages are turning out. Most indent the first line in the first paragraph only. I can't change it so I've tried to indent any other paragraphs within the text & it won't let me do that either. How can I fix this? The other theme I was using didn't have this problem but I didn't like the overall set-up. I'm sure it's something as simple as changing a little php code but I don't know what/where/etc.
* Please Note: Very little PHP experience.
Thanks for any/all your help. :-)
Comments
Let me understand your
Let me understand your problem.
You want each paragraph to start with an indent?
If this is what you want, goto your drupal install, under themes/bluemarine, there will be a file called style.css
look for
p {
margin-top: 0.5em;
margin-bottom: 0.9em;
}
make it
p {margin-top: 0.5em;
margin-bottom: 0.9em;
text-indent: 3em ;
}
Actually I don't want any
Actually I don't want any indents at all. I'd like to know how to change the fact that the first line in the first paragraph indents all by itself. Example here: http://dawnswebdesigns.com/okkjs. Basically all the static web pages & the books are doing this. The only things that aren't doing this are certain mods/features.
If I'm stuck with these first line/paragraph indents...then I'd like to know how to make the rest of the paragraphs indent too so it won't look quite as goofy (hopefully).
I'll look at the .css file...perhaps I'll find something telling the first line/paragraph only to indent & can change it? Thanks for your help/advice. :-)
Dawn's Web Designs
http://dawnswebdesigns.com
http://dawnswebdesigns.com/dh
http://dawnswebdesigns.com/sg
I looked at the .css
I looked at the .css file...there's nothing about indenting yet it does it anyway. Is this a php thing?
Dawn's Web Designs
http://dawnswebdesigns.com
http://dawnswebdesigns.com/dh
http://dawnswebdesigns.com/sg
I don't see any indents in
I don't see any indents in the link you have.
Terms
Do the nodes where this occurs have taxonomy terms associated with them? It may be an empty span that causes this indent. To remedy open bluemarine's node.tpl.php and wrap the span:
<?php if ($terms): ?>
<span class="taxonomy"><?php print $terms?></span>
<?php endif; ?>
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.
Submitted
If your site is not displaying the 'submitted by' info you have to do the same trick for that span (in the same file):
<?php if ($submitted): ?><span class="submitted"><?php print $submitted?></span>
<?php endif; ?>
Otherwise you will still have an empty span, resulting in the indentation.
Kind Regards,
Marcel Overdijk
Kind Regards,
Marcel Overdijk
I had both problems
I encountered the same problems with both empty taxonomy and submitted spans. These tips were easy to install and corrected the problem.
I had worked around the problem by inserting a blank line, carriage return, before the first line; nobody knew but me.
Anyway, this appears to be a problem with Drupal that should be corrected. Does anyone know if a bug report has been submitted?
Thanks very much for the fixes,
Mel