How to remove primary links

erhutiqin - November 6, 2009 - 21:19
Project:Acquia Slate
Version:6.x-1.4
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

asce.tamu.edu

For some reason there are 2 primary links shown. The first one on top- I don't know where it came from, it doesn't seem to be under blocks.

2. the ASCE image seems to be off centered with some kind of a white border around it. My original picture doesn't have that

3. Is there a way to change the pretty sea picture? Do I have to open the original acquia slate folder and change the picture?

I am super new to drupal..this is my first post ever on here. I've played around with it for a long time but still can't figure it out
thanks!

#1

erhutiqin - November 6, 2009 - 21:42

#2

erhutiqin - November 6, 2009 - 21:42

I fixed the first question.

now it's just these two

2. the ASCE image seems to be off centered with some kind of a white border around it. My original picture doesn't have that

3. Is there a way to change the pretty sea picture? Do I have to open the original acquia slate folder and change the picture?

#3

marktheshark - November 8, 2009 - 17:45

How did you remove the primary links?

I uninstalled some modules and suddenly I also get a primary links div at the top of the site that cannot be disabled from the theme settings nor block admin page...

#4

erhutiqin - November 9, 2009 - 00:13

I don't remember exactly how I got it. I played around blocks for a while. I think I might of moved it then moved it back and therefore resetting it ? Currently it's under front preface sidebar. You can also check out your theme setting. there are those little check boxes..

#5

marktheshark - November 9, 2009 - 09:15

I know, but whatever I set the 'primary links' check-box to, it remains enabled.

I may end up modifying the php code to get around this...

#6

marktheshark - November 9, 2009 - 10:28

Regarding your 3rd question:

The "pretty sea picture", it's imported as a background image via CSS.

The source image is in the images/cropped folder.

Modify the style.css stylesheet or override it in a local.css to change it to another picture of your liking.

#7

nikhil.patil - November 19, 2009 - 09:17
Title:How to remove primary links and fixed logo image - website attached» How to remove primary links
Component:Miscellaneous» User interface
Status:active» fixed

Hi marktheshark,
I had a similar requirement and I solved it.
If you or anyone is still looking for the solution, here are the steps:

1. Open "page-front.tpl.php"
2. Search for a code block with the following code

<?php if ($primary_links): ?>
       <div id="primary-menu">
         <?php print theme('links', $primary_links); ?>
       </div><!-- /primary_menu -->
<?php endif; ?>

and remove it. This shall remove primary links from your front page.
3. Open "page.tpl.php"
4. Search for the same code block and remove it.

You should get rid of primary links from the top of every page.

Hope that is helpful!

#8

marktheshark - November 19, 2009 - 12:10

Thanks, I have already done this.

I didn't understand why suddenly the setting started being ignored by the theme, but anyway...

#9

System Message - December 3, 2009 - 12:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.