How to modify legal notice.

Events happening in the community are now at Drupal community events on www.drupal.org.
SymmetryPower's picture

Hello,

I was wondering how I can get the legal notice that is in template.php to not just show on the front page, but on all pages. Thank you. Here is the beginning code of it from template.php

if (drupal_is_front_page()) {
    $vars['closure'] .= '<div id="legal-notice">

Thanks for any help.

Regards,
Michael

Comments

Ref: How to modify legal notice.

jggarley's picture

Per Acquia Slate handbook located at http://drupal.org/node/418326 - you should be able to modified the local.css. Head straight to handbook link and click on Quick link #6 (How to remove the credit links) and you should be able to remove the legal notice. Pretty straight forward if you follow the instruction. Hope it solve your problem.

local.css

Acquia Slate comes with local.css support which allows you to customize the look and layout of the theme without changing the theme's style.css file. The file name is local_sample.css; put your custom css and css overrides in this file and rename it to local.css By restricting your css changes to local.css your changes will not be overwritten when upgrading to a new version of the theme.

NOTE: Don't forget to uncomment the call to local.css in acquia_slate.info so that modifications to local.css will take affect.
How to remove the credit links

The credit links at the bottom of the page, "Theme provided by Acquia, Inc. under GPL license from TopNotchThemes Drupal themes", can be removed by using the local.css file, and add:

legal-notice {

display: none;
}

Adding the above to your local.css ensures that any upgrades of the theme will not reverse your changes.

um dude.. i dont want to

SymmetryPower's picture

um dude.. i dont want to remove them.. i want them on every page.. it was pretty clear in my original post heh.. does anyone know how to do this? still need the help.. thanks

Regards,
Michael

Hi there.

Move it

michelle's picture

Right now it's in an if test that checks if it's on the front page. Just move the code above that.

Michelle


See my Drupal articles and tutorials or come check out the Coulee Region

Thank you Michelle for your

SymmetryPower's picture

Thank you Michelle for your help and your answer, and for taking the time to actually read my question. I appreciate it a lot and everything has now been solved.

Regards,
Michael

Hi there.

"I was wondering how I can

tommyent's picture

"I was wondering how I can get the legal notice that is in template.php to not just show on the front page,"

If you're trying to make a

SymmetryPower's picture

If you're trying to make a sarcastic comment or insinuate something, like perhaps my question wasn't clear, then perhaps when quoting me you shouldn't leave out the end of a sentence.

Hi there.

I was not trying to be

tommyent's picture

I was not trying to be sarcastic or insinuate anything. I was simple showing that it was easy to missinterpret your question like jggarley did so before you got sarcastic with him you could have read your question again. I was thinking the same thing when I first read it.

It was nothing personal

I was wondering how I can get the legal notice that is in template.php to show not only on the front page but on all of the pages.
Is a little easier to understand

Well Quoted

patrickfrickel's picture

I must say that it is a bit ambiguous. I think anyone making the effort to assist shouldn't be shot down in flames. Perhaps just ignoring the incorrect answer maybe the better way to go. Embarrassing a person trying to assist won't encourage people to reply to you requests in case they get it wrong and are harangued for not reading you post comprehensively.

how about

jrdixey's picture

Could you just get rid of the if statement? Try commenting out both the "if (drupal_is_front_page()) {" and the "}" (the end bracket for the if statement) -- that would make what is between them happen regardless of whether you're on the front page or not.

I haven't tried this myself, so if you try it, let me know if it works.

Cheers
Jennifer

Michelle's answer is more correct

jrdixey's picture

Oops, it didn't occur to me, there is probably other stuff inside that if statement that you only want to have on the front page. So do what Michelle suggested instead, don't get rid of the if statement, just move the legal notice code above it.

Is a block possible?

manogolf's picture

I've not tried this since becoming a Drupal droplet but back when I was a wordpress person we used to drop div code in a block and display in the footer. If it were not so late right now I'd go give it a try. Maybe tomorrow.

Just adding "else" statement

danpros's picture

You can display the legal notice on all pages by adding "else" statement.

if (drupal_is_front_page()) {
$vars['closure'] .= '

...

';
}

else {
$vars['closure'] .= '

...

';
}

Regards,

TNT Themes

Group organizers

Group categories

Type of post

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: