How do I combine two lines of CSS code so that both lines work – WordPress/WooCo

  • Unknown's avatar

    I’m using the Rehub theme in WordPress. In the My Account dropdown box, the theme has added two menu items. They have also provided the code to remove each one of these. Each of the codes works by itself and removes the menu item, but I want to remove both. The author told me to just put one line of code after the other, but it doesn’t work. This is what I have;

    .user-dropdown-intop-menu .user-editorders-link-intop.menu-item {
    display: none !important;
    }

    .user-editshop-link-intop{
    display:none
    }
    I tried to put them together like this as the author said;

    .user-dropdown-intop-menu .user-editorders-link-intop.menu-item {
    display: none !important;
    }
    .user-editshop-link-intop{
    display:none
    }
    But it doesn’t work. When I combine the lines of code as above, only the first line of code works. I suspect that I need to add characters to the combined line of code so that both lines work but I don’t know what they are..

    Can someone please help?

  • Hi there!

    Since the theme you’re using is not created by WordPress.com, we can’t really help. You can check out the WordPress community forums instead: https://wordpress.org/support/forums/.

    Because WordPress.com and WordPress.org are two entirely separate entities, we cannot access files or data for sites hosted elsewhere; we can only assist with sites hosted on our servers. You can read more about the differences between WordPress.org software and WordPress.com here:
    https://wordpress.com/support/com-vs-org/.

    http://wordpress.org/support/ is also a great resource for sites using the open-source WordPress.org software.

  • The topic ‘How do I combine two lines of CSS code so that both lines work – WordPress/WooCo’ is closed to new replies.