This forum is for assistance with theme development.

generate h1 et h2 inside link with theme function

Hi!

I am trying to modify a module.

I have two variables: let say $date = "mydate" and $title = "mytitle"

I have for the moment a theming function that creates a link by doing something like this:
$vars['row_dates'][$i] = l( $date, '', array('fragment' => $vars['timelinr_dates_id'] . '_' . $i, 'external' => TRUE));
which output a result like:
<a href="...">mydate</a>

I would like now to output something like:

Hi. My site's slider very slow loading. Why?

Hi. My site's slider very slow loading. Why?

Printing a block in a page template

I'm trying to add the user-menu block into my page template. I've found a post which I've adapted to use this however not is showing up. Here the link to the block – /admin/structure/block/manage/system/user-menu/configure

<?php
  $block = module_invoke('system', 'user_menu', '');
  print $block['content'];
?>

Inserted HTML & CSS treated as foreign

Hi,

I am trying to use Tabbed content within the content of my pages (ww2.openmedpractice.com). I did this because the tabbed module really sucked as far as presentation. These are nicer tabs.

I have noticed that when ever I insert html into a page that is not done by the WYSIWYG editor, drupal treats it like a foreign object and the html can end up anywhere.
Now, this does not happen if I use panels.

If you look on the front page of the URL that I posted, you can see the tabbed data display at the bottom how the bottom footer comes up behind the html code.

Question on how to theme view's column header?

I have a view, I want one column's header to show as two lines, and I want to theme the 2nd line with a smaller font size. So tried to do this in the view:

Configure field:
Label: Line 1<div class="myclass">Line 2</div\>

and then in my css file, I added below:
.myclass {
font-size: 0.9em;
}

But the the final view shows the column header within same line, and did not apply myclass, also I see the brackets.

Any help is appreciated.
Thanks

Blank theme

Hi all

I have developed a custom module (it's just a form for adding a node programmatically) and I want to display it on a blank bare page. I am having a lot of trouble telling just this module page to use any different theme - it persists in using the main theme I have selected for the public website.

I have tried changing it in both template.php and mycustommodule.module but I am not getting close.

Does anyone have a code snippet that allows me to change the theme?

Thanks!

Mark

Pages

Subscribe with RSS Subscribe to RSS - Theme development