This forum is for assistance with theme development.

I need hellp to seting deal product in Open Deals Drupal Distribution theme

I need some help in setting product deals.
Sry 4my engl is not my best part.

I use this theme Open Deals Drupal Distribution

1-I wish the deals added products would be redirected to an affiliate link, as well as setting the Ad to cart to redirect affiliate link.

is there a way name node tpl file in slug instead of nid

Usually I use node-20.tpl.php to build a template file for node which nid is 20.
But if I build a lot of template files.
It looks like this in my theme fold:

node-20.tpl.php
node-32.tpl.php
node-43.tpl.php
node-54.tpl.php
node-66.tpl.php
node-68.tpl.php
...

It is hard to know which page they are for.
Is there a way to name the template file in this format:

node--{node slug}.tpl.php

e.g.
node--about.tpl.php
node--contact.tpl.php

Who knows that?

Troubles with #theme_wrappers function for a search form: form returning empty

Hello Gurus,
I'm creating a custom theme and need to heavily alter the search block form. I've done a lot of digging before posting here, and so far I can call a function that will wrap my form a bit differently (

...

to
...

).

The challenge is that my custom function is returning an empty string or isn't being accepted or is behaving badly in general. I could simply return "HELLO" and nothing will show on the site. I know that my function is being called and I can print_r() the $variables. I just don't see what is being returned there.

/**
* hook_theme()
*/

function ss30_theme($existing, $type, $theme, $path) {
return array(
'ss30_search_block_form' => array(
'variables' => array('links' => array(), 'attributes' => array(), 'type' => NULL),
),
);
}

/**
* hook_form_alter()
*/

//alter forms
function ss30_form_alter(&$form, &$form_state, $form_id) {
if($form_id == 'search_block_form') {
$form['#theme_wrappers'] = array(0 => 'ss30_search_block_form');
}
}

//get rid of the extra

right after the start and end of

//taken from: https://api.drupal.org/api/drupal/includes!form.inc/function/theme_form/7
function ss30_search_block_form($variables) {
//die('made it this far...');
$element = $variables['element'];
if (isset($element['#action'])) {

how to integrate responsive html,css given by external design vendor with omega theme

I am going to build a responsive mobile first website in drupal. The whole html,css will be responsive and will be provided by a design company.
now how do i integrate this omega theme. what is the best practice when responsive design is given by a design vendor..please provide me guidelines

development doubts

I'm developing my first song and at the end I try to install it shows me Notice: Undefined index: info en _block_rehash() (línea 411 de /var/www/drupal-7.22/modules/block/block.module) it is this?? if you could answer my e-mail is epiz@estudiantes.uci.cu

footer help

Hello,

I am using the Blue Masters Template.

I am creating my own theme from it and I am having issues modifying it. I really like the footer (About Us, Categories, From the Gallery and Twitter updates). However, I am trying to modify it to have a three column footer. Next to that footer, I would like some space and have a column by itself. So basically, I want to footer sections (Get in Contact With Us and Upcoming Events). The upcoming events pulls from a view so you can see why I want them separate. All about appearance! I would like them to be basically next to each other - but with SOME space in between. I have tried modifying the CSS and page-front.tpl.php file but I am still not having any luck.

I do not want to add the width to the CSS because that will not make the page responsive. I tried that yesterday and adding the width to the CSS will make it not look pretty. I want my site to be responsive so I am so confused on what I need to do to make this work. I kept changing the these as well:

Pages

Subscribe with RSS Subscribe to RSS - Theme development