• Hi all,

    I have been battling getting the mini cart element removed from my navigation menu for the past several days. I’m using PKSold! theme- a paid theme that’s not currently supported, so I am on my own. Using firebug I have been able to figure out that the css for the minicart is as follows in the stylesheet:

    .mini-cart-button {
    	display: block;
    	float: left;
    	padding: 0 10px;
    	height: 32px;
    	font-size: 12px;
    	line-height: 33px;/*30*/
    }

    I have tried changing the block to a simple display none, which doesn’t work. Neither does removing the block entirely. Can anyone make any suggestions for preventing this element from displaying on the site? hanks so much!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Where is the theme from? Commercial themes aren’t supported here, so help may be quite limited, but without seeing the site, there’s really no way to help at all.

    Thread Starter Templeflower

    (@templeflower)

    this is the site currently under development here:

    https://irisaffiliates.info/fullservicebattery/

    The theme was purchased off of theme forest. I realize it’s not supported, but a few hints to try would really be appreciated. The frustrating thing is I can see the code in firebug- I erase the html lines and it does exactly what I want it to do- makes the minicart box disappear. I just can’t figure out how to translate the html line removal to css code!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    but a few hints to try would really be appreciated

    To clarify, your theme’s vendors are not proving you with support nor a few hints?

    Thread Starter Templeflower

    (@templeflower)

    Absolutely correct. They have pretty much dropped off the face of the earth.
    It happens- so I need to try to figure it out on my own. I’m a big girl, but really ready to pull my hair out on this one.

    Removing HTML is totally unrelated to CSS :). Try adding this CSS:

    .pk_option_nav {
        display: none;
    }

    I’m not sure what’s going on, but you also seem to have a lot of code in the body that should not be there –

    https://validator.w3.org/check?uri=http%3A%2F%2Firisaffiliates.info%2Ffullservicebattery%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

    Thread Starter Templeflower

    (@templeflower)

    I know it is- darn firebug- it teases so with that html editor. Here look at how nice this looks by playing with html. Now try to make those changes permanent on your site with css- not! bwahahahah!

    Not surprised by the extra code- we are using a woocommerce plugin to change some of the e-commerce functionality (In particular cart removal). Probably puts a lot of extra junk in there.

    Thanks for the suggestion wpyogi- tried that in the custom css area of the theme to no avail, sadly.

    Thread Starter Templeflower

    (@templeflower)

    I know it is- darn firebug- it teases so with that html editor. Here look at how nice this looks by playing with html. Now try to make those changes permanent on your site with css- not! bwahahahah!

    Not surprised by the extra code- we are using a woocommerce plugin to change some of the e-commerce functionality (In particular cart removal). Probably puts a lot of extra junk in there.

    Thanks for the suggestion wpyogi- tried that in the custom css area of the theme to no avail, sadly.

    The extra code is caused by a major error in the header.php file – something was not done correctly in that file.

    Does that theme disable right-click? It’s really annoying when trying to work with Firebug.

    I don’t see that CSS anywhere – you might want to see if any of these CSS errors are related to why it’s not working or visible.

    I’m also curious why you’re using an unsupported theme? Aren’t you concerned about compatibility going forward?

    Thread Starter Templeflower

    (@templeflower)

    We have an image protector on which disables the right click. We had a client victimized by fraud- someone stole pics off her website and used them on social media to present themselves as her and solicit money. Even made it on to the local news. So now we try to prevent that- it doesn’t stop screen capture, but it does halt casual image theft.

    Hmm header file. I hadn’t touched that at all during development. I will have to look at it and see whats going on.

    Sorry, but disabling right click does nothing. Try this – in Firebug, use View Info – then click on the media tab – voila – every image and even a button to save them.

    And disabling it also seriously impairs some (disabled) users – it’s really not a good thing to do and possibly illegal in some countries.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    & The way the Web works is that you must download everything before you can view it on your browser. Disabling right click will prevent people from right clicking, yes, but by viewing the website the persons have already downloaded the content.

    This diagram should help explain how the Web works; https://3.bp.blogspot.com/-M6RsIk-NV7Y/UY6gjGv3myI/AAAAAAAAAhs/fb4HwBvZD4w/s1600/how-the-web-works.jpg .

    Basically if you don’t want to share something don’t put it on the Web. It’s the way the World Wide Web operates that it sounds like you have an issue with.
    https://andrew2nevins.blogspot.co.uk/2013/05/how-to-stop-thieves-copying-your-content.html

    Thread Starter Templeflower

    (@templeflower)

    Finally managed to disable the mini-cart. Thanks for everyone’s help. It is greatly appreciated.

    Interesting thoughts- clearly some are very passionate about right click functionality, and international internet user rights. Not about to chime in, I’m not here for debate, just some coding help! ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Remove mini cart element’ is closed to new replies.