Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I am using D7 and creating a custom theme from ground up. I am using the function call in my page.tpl.php to print out the main menu for my horizontal navigation menu. This is working and my custom .css in my template.css is working great, only issue is that the child menu items are being rendered along with the parents. I have double checked every list item in that menu and not one of them has the 'expanded' option checked. So it is currently rendering out both parent and child menu items, instead of keeping the children collapsed until its corresponding parent is clicked on.
I'm having trouble getting my Garland subtheme to work with the Color module, so I can select my own color set for it. I've tried to follow the directions here and here. They seem to disagree on how to do this, but I haven't been able to get either to work.
For instance (following the directions in the first link), I created a directory sites/all/themes/my_garland and put these files in it:
my_garland.info:
name = My Garland
description = My subtheme of Garland
core = 7.x
base theme = garland
stylesheets[all][] = style.css
stylesheets[all][] = my_garland.css
my_garland.css (zero length)
A directory "color" copied from themes/garland/color.
template.php:
<?php
function my_garland_process_page(&$vars) {
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
}
?>
What I'm trying to do is create staff pages that has their name, job title, picture, and bio. I also wanted to have something similar to the "recent content" block at the bottom of each of page that only shows content created by that staff member. That way they can simply create an article from the home page and it will show up on their staff page. Their pages would be viewable to the public as well.
Hi i am using Bootstrap. I have a main-menu item 'Products' which have submenu items. But when i look at my site the submenu items (or dropdown arrow) don't appear on the frontpage and on the other pages. It only appear on the 'product'-page itself.
I noticed that the links in the secondary menu were affected by this too. This isn't exactly what I want, so I tried to color them white again by changing the navigation.css file:
I have been trying for the past few days to get a custom node.tpl.php to render information from a "create_staff" content type. It has a field for title, position, email, photo, and bio. I have a new node--create_staff.tpl.php that is "working" I have everything rendering in the correct spots, the problem is happening when I try to make the email field display as a "mailto" html tag.
Here is what I have in my node--create_staff.tpl.php file: