This forum is for assistance with theme development.

Edit page.tpl.php for certain content types

Hi all.

I want to have some page.tpl.php in my theme to have some minor differences in how nodes of different types are being displayed. I have created page--course.tpl.php, for "course" content type, edited it, cleare the cache (twice, actually), opened a course node page... and saw no differences.

However, node--course.tpl.php works as intended.

Can I make the pag--course.tpl.php somehow work?

Add a button to a node--mycontenttype.tpl.php

Hi all.

I have such a code to display a link:

print l(t('I am interested in this'), 'node/29', array('query'=>array('title'=>$node->title,'query'=>$_SERVER['REQUEST_URI'])))

I would like to display a button instead of a link. A button that, when clicked, makes a user appear on another page, adding 'title' and 'query' to the $_GET string.

How could I do that?

Best practice to customize my Bootstrap Subtheme?

Hi i am a little confused what is best practice to customize my Bootstrap_subtheme?

If i look in my subtheme dir's i see a folder '/less' in here for example i see a the file 'header.less'. In this file there is written: '// Insert your styling here.'

What is the purpose of this?

Why i can't just make for example a file named custom.css and reference it in my subtheme's .info-file? In this file i overwrite the bootstrap CSS and insert all my custom styles?

What is the best way / best practice to customize my Bootstrap_subtheme?

Integrating a Span in Header elements to wrap individual words

Looking for an elegant way to integrate spans into headers (e.g., block and page titles). What I would like to achieve is something like:


<h1 class="page-title"><span class="first-word">Foo</span> <span class="second-word">Bar</span></h1>

I've been looking for an easy solution, but thus far I haven't been able to figure out how this can be done.

Any help is greatly appreciated.

wide omega kicksart commerce

hie

i use omega kicksart commerce and i try to widen this template to 1120 px

i use Media query and the wide template , i define the setting to
all and (min-width: 1080px) and (min-device-width: 1080px), all and (max-device-width: 1120px) and (min-width: 1120px) and (orientation:landscape)

but the template stay to 1200 px

i would like to know if the only solution is to modify the alpha-default-wide-24.css template

is it possible to get this result using the omega kicksart commerce administration

best regard

philippe

Haml and Sass

Hello
I`m looking information about “PROXIDE” engine witch is needed to create themes useing “Haml” and “Sass”

I download engine from https://github.com/codeincarnate/peroxide and and place file “peroxide.engine” in folder „sites/all/themes/engines/ peroxide”and install theme “Oxygen” in „sites/all/themes/” it alowed to build themes using „Haml” and „Sass”.

When I use “Oxygen” theme i get blank page

Why I get back blank page, should I install any files?

Pages

Subscribe with RSS Subscribe to RSS - Theme development