This forum is for assistance with theme development.

Dynamic slideshow images in theme settings to link to specific nodes also selected dynamically?

I'm learning how to make themes by customizing an existing theme. This theme has a slideshow hard-coded into the front page template and it is driving me insane. I want to make it dynamic so that a user with administrative permissions can choose which photos to display to the slideshow.

Beginner Theme development advice please?

Hi,

I have been using Drupal for a couple years now and have recently started using Drupal commerce.

I'd like to build a theme so I can get the site looking how I picture it although there are lots of great themes non quite fit what I'm looking for.

My questions are although my theme will be for drupal commerce would there be much difference in how it's made for a standard drupal theme?

Secondly I think it would be best to use an existing theme as a template, would you agree and if so which theme would be the best 'base'?

Including multiple JS files

Hi,

i'm using a JS file to include multiple JS files in bottom of my page from my theme but i get an error path.

/**
* Import js lib
* @param js_librairies
* @returns {Boolean}
*/
function init(){

// lib import
var myscript_location = document.getElementById('js_script_goes_here');
/* if (undefined == myscript_location)
alert('div not found');
else
alert('found div : ' + myscript_location);*/
for (var i=0; i < js_librairies.length ; ++i) {
var my_script = document.createElement('script');
my_script.type = 'text/javascript';
my_script.src = relative_path + js_librairies[i];
my_script.defer = true;
myscript_location.appendChild(my_script);
my_script.onload = scriptLoaded;
}
return false;
}

/**
* Start non intrusive js
* @param func
*/
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
};
}
}

//var globales - liste les js de zurb à charger
// !! Changer le nom du theme drupal !!

//Drupal.behaviors.zurbstarter = function (context) {
// var pathToTheme = Drupal.settings.basePath + "sites/all/themes/" + Drupal.settings.ajaxPageState.theme;
//};

AT + Sky on mobile

Hi,

I just set a drupal website online which is set up with AT en Sky theme.
Al works fine, but when visiting the site from a mobile phone, I don't see a menu.

http://www.lodge-ghent.com

How can I solve this?

Thank you!

advanced forum post view

Hi,

I have small problem with creating template like this:

example

when i edit "advanced-forum-post.tpl.php" and add something to this file, like div with css for scroll, i see it on all posts separately.

i need just one file called like "advanced-forum-post-view.tpl" - container for main post and comments.

how to do that?

Building a specific theme

I am building a website that will hold recipes on a database. A basic recipe site. I have a very specific idea of how I want it to look though. I have a few questions on what to do here. O.o

1) Should I start the theme from scratch? So far I have designed the homepage but in CSS but still I think that it would be easier and better to do this through another base theme. Also I do not know how to take my style and make it compatible with Drupal.

Pages

Subscribe with RSS Subscribe to RSS - Theme development