Link to home
Create AccountLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

Drupal - Google Map

I can't make this work.

I build a block. See attached san_antonio_block.txt. This is the EXACT content of the block in FULL HTML.

Then I look at it. It looks like the attached loc_page_rendering.jpg.

Obviously, I want the text in the left most column aligned to the top; I CANNOT make it happen. I really don't want to use tables, I used divs with flush left & right, it (Drupal) completly erased all the content. At least in this case it kind of get's it.

When I reopen the block, Drupal has changed it & eliminated the "valign="top" on the left table column. In addition, it wipes out the following from the Google map.

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src=

I have to put that back in every time.

Can someone help?

Avatar of Aaron Feledy
Aaron Feledy
Flag of United States of America image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Have you set the text format to Full HTML? It's the first drop down box under where you add the content.
Avatar of Richard Korts


To all,

When I open the block to edit, it appears as attached. Note that FULL HTML is selected in the dropdown. The <iframe ... tag is eliminated as is the <td valign="top">. I switch to plain text editor, reapply those things & save. It does not work. I will try the php Filter.

If I can figure put how to do it.
To arrow_1

I found no module PHP Filter. I did Google search, found this:

I downloaded the gz version, tried to install as a new module,

It gives me the attached.

That's not the correct module... The one you need already comes with Drupal. It's in the list of core modules on the modules page.
To all,

I found the PHP Filter & enabled it & set permissions.

Result still the same.

It DOES now keep the html formatting (valign="top" & iframe). The iframe looks good, the rest the same.

I'll try with styled divs.

FYI, the problem with all this is it takes days to do a simple page; every time I delve into this it presents new challenges.  I have heard that once you learn it, Drupal makes it easy.

I could have done all 8 locations with maps PERFECTLY formatted in the time spent so far with one not done.

I am once again 2 inches from trashing Drupal & doing this the "old fashioned" way.
To all,

Can I include css styles in a block like styles can be included in a normal html page?

Like in the attached?
Yes... Just be sure to use the php filter.

I did it & it looks like this:

I'm guessing it's all the <style> stuff that cause all the extra spacing at the top? Do you think so?

I can make all that in-line; what a pain.

Also, I THINK I know how to add my own css file in this theme; I MIGHT try that first.


I'm stunned!!
What works? Your own CSS?
Yes, my own css & redoing the entire page using divs instead of tables,

The Theme developers suggested doing it like this, which I did (Option 1):
in case you would add new css file in to the theme. I did option 1 because 2 didn't seem to work (yesterday). FYI, this guy had the wrong location for the php file but I found it.


open /sites/all/themes/centum/templates.php
add this code line
drupal_add_css($theme_path . '/css/local.css');

underneath of

drupal_add_css($theme_path . '/css/centum.css');

1/ in /sites/all/themes/centum/ add this

stylesheets[all][] = css/local.css

so file local.css you must save under "css"
2/ follow the URL hit "clear all caches"

I hope this helps,

Best regards

This way of adding your own CSS must be some proprietary thing with with theme. I have never had a problem with doing it the way I suggested.
The problem now is if there is an update to this theme, and you use it, you will lose all of your changes. So be careful with that.