Hi,
We're currently designing our first OP (sub)theme and are having a problem when creating a new block on the homepage.
We've created the block with the following code;
Added;
regions[featured] = Featured
to the .INFO file.
Added;
<
div id="featured"
<?php
print $featured
?>Above '
<
div id="sidebar-right" class="sidebar">' in page-front.tpl
Added;
featured {
padding: 10px 10px 10px 10px
float: right;
width: 580px
}
to our theme's CSS file.
But the result is that the sidebar starts at the bottom of the 'featured' block, but in the sidebar.
Is there something we've missed here? We've tried moving it around in page-front.tpl and also playing with the CSS, but nothing seems to solve it.
I've attached a screenshot incase this isn't clear.
Any help would be really appriciated!
Thanks
| Attachment | Size |
|---|---|
| FeaturedBlock.png | 221.44 KB |
Comments
sidebar won't align
problem due to , incorrect html / some other , could you send the url ,then we can solve that.
Hi, I'm having some problems
Hi,
I'm having some problems with doing that....
The site is on a local server so I can't send you a URL, I can't attach it in a txt file as it won't allow me to attached to a comment and if I paste the code in, it says that my message is spam...
Any idea's apart from starting a new discussion?
The only changes which we've done is what's above; is there anything wrong with that?
P.S. The CSS alignment is 'left' not 'right'.... sorry.
Thanks,
I've uploaded the
I've uploaded the 'source.html' and 'css.txt' to another site's directory.
You can find the two files here;
http://www.lansdownlinks.com/files/source.html
http://www.lansdownlinks.com/files/css.txt
Just 'view source' on source.html for a better view.
Any pointers would be great, we've tried some more things today and it hasn't helped.
Thanks.
Your design is gorgeous; Can
Your design is gorgeous; Can I pick your brain? How did you accomplish the slider on the front page? Also, what css was needed to transform the menubar? If I can get OP looking better, I may switch to it as my main publishing platform.
If you're talking about
If you're talking about www.lansdownlinks.com, I hate to say that's a WordPress site.... :) I manage a few sites and that was the easiest for me to upload the files to...
Although, it wouldn't be difficult to make OP work like that, you just need to know your CSS and understand theming OP.
Has anybody got any ideas about this homepage block problem?
Hi, We've fixed it
Hi,
We've fixed it finally!
We had missed the 'body.front-page' attribute before #newregion in our CSS - it's working fine now!
P.S. ithacaindy, although in my opinion WordPress is easier to setup a site and add nice featured compared to Drupal, the more I use Drupal/OP, the more I realise how much more powerful and customisable it is than WP.
How to create tpl file for registration content
I use cck module , add some desired custome filed but , title ,boby and so many item display in my registration page , but i want to show only field.
thanks ..
Rahul Kumar Singh