Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #863901

    ayatango
    Participant

    Hi, after updating X theme, some of my CSS edits doesn’t work any more.

    examples:

    .x-topbar {background-color: #000000;} – but the topbar background is white, not black…

    form.cart {display: none;} – this code did the trick to hide the “add to cart” button, but now the button is there…

    What can I do?

    Thanks,
    Andrei

    #863915

    ayatango
    Participant
    This reply has been marked as private.
    #864362

    Christian
    Moderator

    Hey Andrei,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #864364

    ayatango
    Participant

    Meanwhile, I deactivated WMPL translation management, WPML Media and WPML Woocommerce, and the custom CSS is working now.
    Strange, though… It seems I am not able to use these plugins…

    #864676

    Christopher
    Moderator

    Hi there,

    Would you please activate those plugins and provide us with login credentials so we can take a closer look?

    Thanks.

    #864706

    ayatango
    Participant
    This reply has been marked as private.
    #864707

    ayatango
    Participant
    This reply has been marked as private.
    #865260

    Rue Nel
    Moderator

    Hello Andrei,

    Thanks for getting back to us. I have investigated your site and it seems that most of the css has been modified and have been added a character n like this: nnform.cart {ndisplay: none;n}. I went ahead and updated the css and use this:

    .x-colophon {
    	background-color: #fff;
    }
    
    .x-navbar .desktop .x-nav > li ul {
    	top: 54px;
    }
    
    form.cart {
    	display: none;
    }
    
    .woocommerce div.product p.stock, 
    .woocommerce-page div.product p.stock, 
    .woocommerce #content div.product p.stock, 
    .woocommerce-page #content div.product p.stock {
    	color: #ed1c28;
    	font-size: 20px;
    }
    
    .desktop .x-nav .x-megamenu > .sub-menu > li {
    	margin: -10px 0;
    }
    
    .pp_top .pp_middle, .pp_bottom .pp_middle {
    	height: 0px;
    	left: 0px;
    	position: absolute;
    	right: 0px;
    }
    
    .pp_top .pp_left, .pp_bottom .pp_left {
    	height: 0px;
    	left: 0;
    	position: absolute;
    	width: 0px;
    }
    
    .tp-caption a {
    	color: #fff;
    }
    
    .woocommerce li.product .entry-header .button, 
    .woocommerce-page li.product .entry-header .button {
    	display: none!important;
    	font-size: 14px;
    	left: 0;
    	margin: 0;
    	opacity: 0;
    	padding: 0.45em 0.5em 0.575em;
    	position: absolute;
    	right: 0;
    	top: -65px;
    }
    
    .x-topbar {
    	background-color: #000;
    }

    And still it is not working because the character n came back. I’ve investigated further and found out you are using PHP version 5.2.17 and WordPress 4.3 requires at least 5.4. This could possibly be the cause of the issue. In most cases you cannot update your PHP version yourself and need to contact your host about this. The upgrade process is an easy process and should be something your host can do for you without affecting your website or charging you for it. Here’s a letter you can send to your hosting company:

    Dear host,
    
    I\'m interested in running the open-source WordPress <https://wordpress.org/> 
    web software and I was wondering if my account supported the following:
    
    PHP 5.6 or greater
    MySQL 5.6 or greater
    The mod_rewrite Apache module
    
    Looking forward to your reply.

    Hope this helps. Kindly let us know.