WordPress.org

Ready to get started?Download WordPress

Forums

Maintenance
[resolved] Background Image repeats itself (3 posts)

  1. mozalan
    Member
    Posted 1 year ago #

    First of all, many thanks for this beautiful plugin! - apart from being so great :) I'm not able to stop this background image from repeating itself.

    It would be very useful if you could make this change and give users an options like CENTER, REPEAT or NO-REPEAT... so it background image could be aligned accordingly.

    Now, how do I stop it doing that with current version? :)

    Many thanks in advance!

    http://wordpress.org/extend/plugins/maintenance/

  2. mozalan
    Member
    Posted 1 year ago #

    I think I've done it myself..

    maintenance/lib/index.php

    <?php if ( $mt_lib['body_bg'] || $mt_lib['body_bg_color'] ): ?>
    			<style type="text/css">
    				body { background:
    					<?php echo $mt_lib['body_bg_color']; ?>
    						<?php if ( $mt_lib['body_bg'] )  {
    								echo "url({$mt_lib['body_bg']}) no-repeat scroll 0 0";
    								} else {
    								echo 'url('. PLUGIN_URL . LIB_DIR . '/images/theme-bg-default.jpg' .') no-repeat scroll 0 0';
    								} 
    
    								?>;}
    
    			</style>
    <?php endif; ?>

    It was "repeat-x", just replace it with "no-repeat" and it will be sorted afterwords.

    Hope it helps,

    Thanks again!

  3. Fruitful Code
    Member
    Plugin Author

    Posted 7 months ago #

    Resolved in version 2.0

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.