• Resolved Jld142

    (@jld142)


    Hello, I hope i am not being two cheeky here, but i have 2 widgets that i have tried to merge into one.

    What i have done to taken the PHP code of my widget and called functions from the WP-members widget.

    So, my code checks if a user is logged in and then calls the WP-members widget code to display either the login box or the welcome message:

    if (!$uData)
          {
             # display wp-members widget (login boxes)
            echo wpmem_do_sidebar();
          }
    
          else
          {
             ....	
    
    	# display wp-members widget (welcome message)
    	echo "<p>" . wpmem_inc_status() . "</p>";
          }

    This works fine with no problems, however i cannot seem to style the wp-members code.

    My homepage demonstrates how i want my login widget to show (this is the default WP-members widget):
    http://www.complete-models.com
    The text boxes are set to a % to stop it overflowing the sidebar (which it does as standard).

    However if you look at the new page:
    http://complete-models.com/member-options/inbox/

    The text box overflows again, almost as if it forgets the WP-members CSS i added previously.

    I do not understand why it is doing this as i am calling the WP-members functions directly – surely they should retain all stlying ?

    I hope this makes sence

    https://wordpress.org/plugins/wp-members/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Code not styling correctly’ is closed to new replies.