Login & Registration Page Design
 Posted: June 23rd, 2010, 8:21 am
Posted: June 23rd, 2010, 8:21 amHi, I'd like to stop the Login/Registration Design background image tiling.  Where is the code/css so I can add no-repeat please?
Many thnaks
Katie
			Many thnaks
Katie
— WordPress® ( Users Helping Users ) —
http://www.primothemes.com/forums/
 Posted: June 23rd, 2010, 8:21 am
Posted: June 23rd, 2010, 8:21 am Posted: June 23rd, 2010, 9:48 am
Posted: June 23rd, 2010, 9:48 am      $s .= 'html { background-image: url(' . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_reg_background_image"] . ') !important; }' . "\n";
 Posted: June 23rd, 2010, 12:25 pm
Posted: June 23rd, 2010, 12:25 pm            /**/
            //$s .= 'html, body { border: 0 !important; background: none !important; }' . "\n"; /* Clear borders & existing background. */
            $s .= 'html, body { border: 0 !important; background-color: #' . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_reg_background_color"] . ' !important; background-image: url(' . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_reg_background_image"] . ') !important; background-repeat: no-repeat !important; background-position: top center !important; }' . "\n"; /* Clear borders & existing background. */
            
            //$s .= 'html { background-color: #' . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_reg_background_color"] . ' !important; }' . "\n";
            //$s .= 'html { background-image: url(' . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_reg_background_image"] . ') !important; }' . "\n";
            //$s .= 'html { background: url(' . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_reg_background_image"] . ') !important; }' . "\n";
            
            /**/
 Posted: June 23rd, 2010, 10:43 pm
Posted: June 23rd, 2010, 10:43 pm<?php
add_filter("ws_plugin__s2member_login_header_styles", "my_login_styles");
function my_login_styles($s2member_styles)
    {
        echo '<style type="text/css">';
        ?>
         Your stylesheet data goes here.
        <?php
         echo '</style>';
    }
?> Posted: June 25th, 2010, 7:18 pm
Posted: June 25th, 2010, 7:18 pmJason Caldwell wrote:Also. if you would like to do this using a WordPress Filter, that would be better in the long run. That way you won't have to worry about changing this all the time when we release new versions of s2Member in the future. Here is a quick example.
Inside the functions.php file for your theme, add these lines, and adjust as necessary.
- Code: Select all
<?php
add_filter("ws_plugin__s2member_login_header_styles", "my_login_styles");
function my_login_styles($s2member_styles)
{
echo '<style type="text/css">';
?>
Your stylesheet data goes here.
<?php
echo '</style>';
}
?>
 Thank you for this priceless tip Jason
 Thank you for this priceless tip Jason Posted: June 26th, 2010, 12:48 am
Posted: June 26th, 2010, 12:48 am