Project:Andromeda
Version:7.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

How do I change the footer layout from 5 (five) fields to 4 (four) and give more area to each field?

Comments

#1

I don't know how to remove the fifth block, I don't think there is one unless you put a fifth block.
At the moment the blocks are a set width so four block will never fill the default width but appear to have an empty block at the end. I may be wrong here.

To make a four column footer is simple.
*Remember to back up before you make changes.*

Edit the CSS sheet,
/sites/all/themes/andromeda/css/structure.css line 87

width:172px;
to your wanted width
width:215px;

Thank you.

AttachmentSize
00.11.33-[25.08.2011]-adromedacssstructure.png 24.6 KB

#2

Thanks for the info.. I have another question about the footer area. On teh sample site, the footer has the search block over some other stuff. How is that done? I looked at every angle but could not figure that one out..

Thanks again for your help...

#3

OK... How can I get the blocks in the footer to say:

block 1 is to the left
block 4 is to the right
block 2 and 3 are evenly centered in the middle with the proper padding/margins on all 4 of them... I have looked and tried all kinds of combinations and nothing seems to work.. anyone have any ideas?

#4

It depends on how you want them positioned?
[150px] [350px] [350px] [150px] etc.

Andromeda at default is a fixed width.
What you are looking for may need a little more editing to the core template.

Depending on what is going into each block this can be easy or hard.
The template merely wraps what you insert inside the block template file. If the block template is free to expand with fixed blocks at each end then you should achieve the desired result.

As for the social bookmarks under the search there is a setting somewhere, not sure where. Try in the template config. I don't know if this can hold custom html etc but you could adapt it to, depending on how deep you want to go.

Thank you.

#5

OK.. I think this is the code you are talking about... it is in the search-block-form-tpl.php file.

<?php

/**
* @file
* Displays the search form block.
*
* Available variables:
* - $search_form: The complete search form ready for print.
* - $search: Associative array of search elements. Can be used to print each
*   form element separately.
*
* Default elements within $search:
* - $search['search_block_form']: Text input area wrapped in a div.
* - $search['actions']: Rendered form buttons.
* - $search['hidden']: Hidden form elements. Used to validate forms when
*   submitted.
*
* Modules can add to the search form, so it is recommended to check for their
* existence before printing. The default keys will always exist. To check for
* a module-provided field, use code like this:
* @code
*   <?php if (isset($search['extra_field'])): ?>

*     <div class="extra-field">
*       <?php print $search['extra_field']; ?>
*     </div>
*   <?php endif; ?>
* @endcode
*
* @see template_preprocess_search_block_form()
*/
?>
<div class="container-inline">
  <?php if (empty($variables['form']['#block']->subject)) : ?>
    <h2 class="element-invisible"><?php print t('Search form'); ?></h2>
  <?php endif; ?>
  <?php print $search_form; ?>
  <?php if (module_exists('follow') && $show_follow_links) : ?>
    <?php print _follow_block_content(); ?>
  <?php endif; ?>
</div>

But I am not sure what some of this means and what to do with it.. any help would be appreciated...

#6

It depends on how you want them positioned?
[150px] [350px] [350px] [150px] etc.

Andromeda at default is a fixed width.
What you are looking for may need a little more editing to the core template.

Could I do something like this:
[100%] [50%] [33%] [25%]
instead of:
[150px] [350px] [350px] [150px] etc.

That way if I put just something in column 1 it takes the whole area, column 2 will split it in half with column 1, and so on as you can see what I am trying to do. Will this work correctly? And if so, what might I need to do to get all of it to center in the footer instead of floating left?

Thanks...

#7

I'm not sure what you are going for, a block spanning 100% will take the whole width and not allow others.
You should look through the css tutorials here, if you're new take them in order. These are all to the w3 compliance.

http://w3schools.com/css/default.asp
You should just try the changes out, use a local server if you're worried about breaking a site. Or use firebug addon for firefox to edit the demo site. This is the best way to learn.

As for the search block with social bookmarks;

1.

<?php
if (module_exists('follow') && $show_follow_links) :
?>

Checks if the follow module exists on your installation and that it is enable for the search block,
2.
<?php
print _follow_block_content();
?>

Prints the social bookmarks,
3.
<?php
endif;
?>

Closes the bookmark section (if statement).

You can try putting code in here, instead of these 3 lines and it should appear in the search block.

Best wishes, the_Whiteside_of_life.

#8

Status:active» fixed

#9

Status:fixed» closed (fixed)

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

nobody click here