This forum is for assistance with theme development.

SEOPosition Theme - Can't override block title color (h2)

Hi There,

I've played around with this off and on for a couple of days, but I can't seem to crack it.

I am using the SEOposition theme and I am in the process of modifying it to suit.

What I have is the "Similar" module for display similar articles to that which is being viewed.

The trouble I am having is overriding the default color of the

title of the block. I know this has something to do with the way I am trying to class the style, but I simply can seem to change the color (Although I have managed to successfully override the background color of the said

)

In the SEOPosition theme css, I have this default class:

#leftcol .block h2, #rightcol .block h2 {
  padding: 1px 6px;
  color: #19214F;
  font-size: 1.1em;
  text-transform:uppercase;
  font-weight: bold;
  border-bottom: 2px solid #555;
  margin-bottom: 0.5em;
}

Now, if I change the color here, it works fine, however it changes ALL blocks. This Similar block is a different color so is to be treated seperately.

So, using Firefox Web Dev toolbar, I get the style of the h2 and I create this class at the bottom of the css file, with a background color thrown in just for a test:

.block-similar h2 {
  background-color: red;
  color: #ffffff;
}

The background color changes fine, but the text color doesn't.

Content Template Help!

I am a drupal newbie who by no means is familiar with php programming. I don't plan on using any type of advanced theming, but I am having a bit of trouble using the content template module to position my fields.

So this is my scenario:

Copying Garland theme to new theme names can't see new regions in template.php -- please help

I wanted to copy the garland theme with different names so that I could try different color and styles. But the new themes can only see the default regions, but not the extra ones diffined in the template.php I name the function in template.php with newtheme_regions and the extra regions are same for all themes . I don't know where I could be going wrong.. any thing else I should take care.. I thought this should be straight forward...

Changing header banner

I have no idea which version of Drupal my web designer used. But he has since had to resign and I'm on my own. Forgive my ignorance but, how do I change the custom banner on the top of my site pages?????

jquery, problem wit $().text()

Can somebody help me?
I use Drupal 5.2.
I installed it on a localhost. Then I wrote theme for it (theme uses smarty engine).I constructed menu for my theme. That menu is created by using js. For more handy work I use jquery. When creating html code, on the base of which I created tpl file I used jquery 1.3.1 from the official site. I have the following problem:
To build a menu I use jquery text() function text, for example
$('<div class="c1"><div class="c2"></div></div>').find(".c2").text("test text")

and then get
<div class="c1"><div class="c2">test text</div></div>'

When I use jquery from the official site all works fine. But when I use jquery that is within the drupal an error appears.

For debugging I use firebug http://www.getfirebug.com/

r has no properties
e("test") jquery.js (line 2)
addMenuItem(0) menu.js (line 85)
e([menuitem, menuitem, menuitem, 8 more...], addMenuItem(index), undefined) jquery.js (line 2)
e(addMenuItem(index), undefined) jquery.js (line 2)
createMenu(Document ) menu.js (line 108)
e(undefined)jquery.js (line 2)

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a...

Example of code from my project, which causes an error, mentioned earlier

how to rename the link "more"

Hello,

in the menu "Recent blog post" there's a link says "more".
How to rename that link??

Pages

Subscribe with RSS Subscribe to RSS - Theme development