Support » Plugin: WordPress Simple PayPal Shopping Cart » Widget Title Alignment

  • Hi,
    I did a Google search, but couldn’t find an answer, so I’m hoping you can help.

    I found the code I can use to decrease the size of the cart. I set it to 80%. I also wanted to move the cart more to the right, i.e. centre it. I couldn’t find the code to centre it so I used margins to move it. I’ve not set the margin on the right as it doesn’t seem to make a difference.

    .shopping_cart{
      margin-top: 15px;
      margin-bottom: 15px;
      margin-left: 40px;
    width: 80% !important;
    }

    Unfortunately, this does not move the widget title. Is there a way to do it differently altogether or could I add code specifically for the widget title? I don’t know how to code and don’t know what to look for here. 🙁

    Here is what the sidebar/shopping cart looks like with the above code: http://www.screencast.com/t/y5YOJ00sQV

    By the way: my theme lets me add CSS code so I didn’t install the recommended plugin.

    Thank you for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, find out if your widget title has a class assigned to it. If it does then add the following to the class.

    For example:

    .yourclass{
    text-align: center;
    }

    Let me know how you go.

    Regards

    Hi,
    thank you for your reply. 🙂
    I think the class is ‘.sidebar’.

    I’ve added:

    .sidebar{
    text-align: center;
    }

    It centres the title, but unfortunately the cart image and the text below the image move with it. This is what it looks like: http://www.screencast.com/t/A5QTlJew

    • This reply was modified 3 years, 1 month ago by rothaar.
    • This reply was modified 3 years, 1 month ago by rothaar.
    Plugin Contributor mbrsolution

    (@mbrsolution)

    That is probably because they all belong to the same class. Can you share your URL? I am curious to see if they do belong to the same class.

    Thank you

    rothaar

    (@rothaar)

    Hi
    sorry for the late reply. I don’t share the URLs to my websites anymore since I realised that brute force attacks and spam comments increased whenever I did that. If there’s a way to send you the URL privately I wouldn’t mind. 🙂

    BTW: Could I hide the widget title somehow? It’s not really needed and it would solve my issue too.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, click on my name and go to my site. Then send me a message via my contact form so that you can share your URL.

    Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Widget Title Alignment’ is closed to new replies.