This forum is for assistance with theme development.

[Solved] Meta description in node/add page

Hi,

I want to add a meta description in a node/add page and i don't know if i can do it with metatag module ( i tried without succes! ) or in template.php, and i dont kwon how to write it in template if i can't do it with the module !

Please help me ^^

Thank you

How can I modify user menu block (My account, Logout)?

I have managed to change "My account" into Welcome, username! with this code under theme_menu_link in template.php

Pre-made masonry themes

Hello,

I am new to Drupal- coming from Wordpress. I am interested in designing a masonry theme that resembles this website's homepage: www.dusken.no. Of course I am not looking for something identical; I do not want to copy this website. But I would like something where I can adjust the size of the boxes like on this website based on the importance of the article and have lots of places which are equally sizable for advertisements.

I have looked through the forums on drupal.org as well as google (been to themeforest.net among others), but I have not been able to find any theme paid or free that seems to have the qualities listed above. That being said, I am used to pre-built themes in Wordpress, but it seems from what I have learnt so far, Drupal favors individual modules to a whole ready-made theme.
In other words, if I wanted to design a website similar to the example given above, would I be better off using the Masonry API module with all the other sub-modules and build it that way? If so, what kind of experience level would be recommended to undertake such a design and how much CSS coding would have to be done from scratch?
Or does there exist a free or paid theme that looks like the example and I have simply missed it?

Changing heigth and width of picture slider in theme bluemasters

Is there someone who can tell me how I can change the width and heigth of the picture slider in theme bluemasters ?

Views display issue in IE browser

I use Views Gallery style to display the layout of the artists and artwork on (my website). The layout looks nice in chrome and FireFox browsers, but in IE, the items can only be displayed in one column. Does anyone know what's wrong? how to fix it?

Change the class of the <form><div class="form.item"><input> to different class by overriding

Hi,

I am new to drupal. I do not know much about overriding in Drupal. However, I found this to modify the login block (added into my template.php)
<?php
function nevia_theme(&$existing, $type, $theme, $path) {
$hooks['user_login_block'] = array(
'template' => 'templates/user_login_block',
'render element' => 'form',
);
return $hooks;
}

function nevia_preprocess_user_login_block(&$vars) {
$vars['name'] = render($vars['form']['name']);
$vars['pass'] = render($vars['form']['pass']);
$vars['submit'] = render($vars['form']['actions']['submit']);
$vars['rendered'] = drupal_render_children($vars['form']);
}

function nevia_form_user_login_block_alter(&$form, &$form_state, $form_id) {
$form['name']['#title'] = Null; // Change text on form
$form['name']['#attributes'] = array('placeholder' => t('Username'));
$form['pass']['#title'] = Null;
$form['pass']['#attributes'] = array('placeholder' => t('Password'));
$form['name']['#size'] = 15;
$form['pass']['#size'] = 15;
$form['actions']['submit']['#value'] = 'Login';

if (variable_get('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)) {
$markup = ' ' . l(t('Registration | '), 'user/register', array('attributes' => array('title' => t('Create a new user account.'), 'class' => 'register-link')));
}

Pages

Subscribe with RSS Subscribe to RSS - Theme development