This forum is for assistance with theme development.

how to center vertically friendselectric theme

I am using friendselectric theme to create my website, i have set the width to 770px and go it centered horizontally but i cant get it to center vertically. can someone with more css knowledge pls help me out?

my existing code that handles the page is

Struggling with creating custom Theme - Any good advice?

Hi there,
I'm quite new to Drupal, but one of the important things for me to do, was to be able to me to customise the look of my Drupal site. This is one of the most important things I want from a CMS system (which I am also new to by the way!).

Reading about Drupal it seems great, however, I'm really struggling to get going with my own Theme.

I've been reading about PHPTemplate, and perhaps I just need to give it more time for it all to settle in my head, but I'm just finding it hard to really get anywhere.

For example, I set my self the following task:
I'm going to take the available box theme, and I am going to make the main contents table of this theme, be positioned somewhere different on the screen.

So I had a look at the page.tpl.php file and noted the main table has an “id” of "content".

So I then looked to the related css file (style.css in the same folder) and noted the existing "#content" style. I therefore thought that if I add a new “left” and “top” values to this of 1px, this should make the table move to the top left of the screen.

So the section of the style.css file became:
#content {
width: 100%;
margin: 0;
padding: 0;
font-size: 1em;
left: 1px;
top: 1px;
}

However, when uploading the new file, reselecting the theme from the administrator menu and then refreshing good measure (using IE 6) I did not get any new results.

changing colours on Blix template

Hi,

I am running 4.6 and I am trying to change the colours [just the colours] on the Blix template. I have been able to use the CSS to change most of what I want but I can't figure out how to control the colour change for these two items:
1. The faint drak grey vertical line between the nodes and the blocks
2. What looks like the background colour in area occupied by "posted in" and acts as the divider between nodes.

thanks

align form elements horizontally on settings page (4.6)

Hi,

I have some problems with creating a settings page for a module i'm developing.
I want administrators to go into settings, and choose a few starting and ending hours.
For now i have this already: http://users.telenet.be/svend/settings_problem.jpg (screenshot) in admin/settings/timetable.
But i would want the 4 dropdownlists to be on 1 line horizontally, as this current approach is taking up too much space, as a lot of hours will need to be selected.

Smarty theme engine - overriding menu generation

This is in response to http://drupal.org/node/61713
I'm placing my response here to open up discussion.

Documentation for the Smarty theme-engine is lacking -- in some ways this is appropriate as it mirrors the functionality of phptemplate in many ways but this leads to confusion. Between work and classes I haven't had time to write much doc -- I'm more than willing to accept submissions from anyone and will be sitting down to write more comprehensive documentation soon.

--------------------------------

To do custom theming of that (or any themable) function you'll need an entry in the smartytemplate.php file residing within the theme's directory.
If you'd like to do rendering with smarty as opposed to having your rendering logic in straight php within smartytemplate.php you can call _smarty_callback*() with the appropriate parameters and create a corresponding .tpl file.

/**
* Catch the theme_item_list function, and redirect through the template api
*/
function smarty_item_list($items = array(), $title = NULL) {
  // Pass to phptemplate, including translating the parameters to an associative array. The element names are the names that the variables
  // will be assigned within your template.
  return _smarty_callback('item_list', array('items' => $items, 'title' => $title));
}

This example would allow you to then make a item_list.tpl file within the theme directory and do the rendering there.

Two simple questions

I upgraded to v4.7 yesterday, and the process has gone much smoother than expected.

This is a pleasant surprise since I know almost nothing about php, CSS or programming in general. I've been going entirely from the manual and the comments I find in the forums.

Kudos to the community!

Anyhow, I have two things I'd like to fix that I'm sure will be easy for you - but I just don't know where to start:

Pages

Subscribe with RSS Subscribe to RSS - Theme development