Hello,
I'm using a custom index plugin and would like to add background image/color to the tob box (i've got 3 modules on my page: top box, lefthandside and right). Is there a way to do this?
From my code:
$mod_params = array('class' => 'elgg-module-highlight');
?>
<?php
// Top box for login or welcome message <<<<<==== would like to add background here
if (elgg_is_logged_in()) {
$top_box = "<h2>" . elgg_echo("Hi") . " ";
Appreciate your help... cheers
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- bryan@nyaki

bryan - 0 likes
- juBo@juBo

juBo - 0 likes
- bryan@nyaki

bryan - 0 likes
You must log in to post replies.This seems to work, but the background shows for all modules... but I just need it particularly for the $top_box
}
.elgg-module-featured > .elgg-body {
background: url(http://xxx) no-repeat right center;
}
any help? thanks
Hi Bryan,
Try this. Change the code in custom_index.php to:
(The only change is "featured2")
Then the css would be:
June
jubo.co.uk
thanks, Jobo. actually fixed it before I read your post.. I had to add a separate module and css for the topbox and it worked like a charm...
same as your suggestion, instead of featured2, I created topbox
Cheers