Download & Extend

Primary links dropdown editing to below banner?

Project:Marinelli
Version:6.x-2.96
Component:User interface
Category:support request
Priority:minor
Assigned:odox
Status:closed (fixed)

Issue Summary

Hi,

Just wondered if it was possible to edit the template so the Primary links 'bar' could sit below the banner image rather than above it. This would make navigation a bit easier, at least on my own site.
I'm sure it is, but i'm not much of a coder so I was wondering if someone had already done this and could provide me with the template/code or it be included in a future release?

Thanks very much!

P.S - Great theme!!

Comments

#1

This is a 14-week-old issue, so perhaps it has already been solved by the original poster; however, I just encountered it, so I thought I would let everyone know how I modified the theme:

Edit your theme's page.tpl.php file. You'll likely find it in sites/all/themes/marinelli, or if you're using a sub-theme like Giordani, it'll be in sites/all/themes/marinelli/giordani.

Find the following text:

<div id="utilities">
  <?php if (isset($primary_links)) : ?>
      <?php print '<div id="plinks">'; ?>

             <?php

            
if(theme_get_setting('menutype')== '0'){

               print
theme('links', $primary_links, array('class' => 'links primary-links'));
             }

             else {

               print
phptemplate_get_primary_links();
             }

          
?>


           <?php print '</div>'; ?>
           <?php endif; ?>
</div>

Move it to between the site slogan and the secondary links, as follows. I highlighted the moved text with "BEGIN MOVED TEXT" and "END MOVED TEXT" comments.

<p class="slogan"><?php print $site_slogan ?></p>
<?php } ?>

  </div>


<!-- BEGIN MOVED TEXT -->
<div id="utilities">
  <?php if (isset($primary_links)) : ?>
      <?php print '<div id="plinks">'; ?>

             <?php

            
if(theme_get_setting('menutype')== '0'){

               print
theme('links', $primary_links, array('class' => 'links primary-links'));
             }

             else {

               print
phptemplate_get_primary_links();
             }

          
?>


           <?php print '</div>'; ?>
           <?php endif; ?>
</div>
<!-- END MOVED TEXT -->

         <?php if (($secondary_links)) : ?>
      <?php print '<div id="submenu">' ?>
          <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
          <?php print '</div><div class="stopfloat"></div>' ?>
        <?php endif; ?>

This will move the primary links to below the banner and site slogan, but there's a caveat: By modifying a piece of delivered code, you'll have to be make this change again if you ever download an updated version of the marinelli theme.

#2

Status:active» fixed

Fantastic! Thank you!

#3

Status:fixed» closed (fixed)

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

nobody click here