728x90
1

I am using an ecommerce enabled wordpress theme! for my website along with woocommerce. Have created a childtheme, copied woocommerce.css(from the woocommerce plugin) to the child theme css and disabled the enqueuing of this woocommerce.css.

There is a woocommerce.css in my parent theme's folder structure also ( ~/wp-content/themes/shop-isle/inc/woocommerce/css/woocommerce.css).How do i override this so as to be agnostic to any theme updates?

Also - what is the difference between the woocommerce.css in the parent theme folder structure and in the woocommerce plugin folder?

1

You should create the same file in your child theme, so you will have something like this:

~/wp-content/themes/shop-isle-child/inc/woocommerce/css/woocommerce.css

This way the woocommerce.css of the parent theme will not matter.

0

So I tried various things, including using the get_stylesheet_directory() function - but nothing worked. I contacted the theme guys, and they gave me this code to override the woocommerce.css in the inc folder after replicating the folder structure in the child-theme, and it seems to work.

function ti_dequeue_script() {
  wp_dequeue_script( 'shop-isle-woocommerce-style1' );
    }
add_action( 'wp_print_scripts', 'ti_dequeue_script', 100 );

function ti_enqueue_script() {
  wp_enqueue_style( 'shop-isle-woocommerce-style2', get_stylesheet_directory_uri() . '/inc/woocommerce/css/woocommerce.css',array(), 'v3' );
   }
add_action( 'wp_enqueue_scripts', 'ti_enqueue_script', 100 );


728x90
  1. Hi, i have a compiled ot 9.60, and im using linux ubuntu, but when i try run appear this error.
    How can i fix it?
    Thankss

    root@sebastian-desktop:~# cd /otserv
    root@sebastian-desktop:/otserv# ./theforgottenserver
    ./theforgottenserver: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
    Last edited: Nov 2, 2012
  2. Ninja

    NinjaGlobal ModeratorStaff MemberGlobal Moderator

    Joined:
    Apr 6, 2010
    Messages:
    5,920
    Likes Received:
    1,528
    Best Answers:
    23
    Which TFS version?
  3. Znote

    Znote<?php echo $title; ?>Staff MemberGlobal ModeratorPremium User

    Joined:
    Feb 14, 2008
    Messages:
    6,361
    Likes Received:
    1,058
    Best Answers:
    148
    Which Ubuntu server? Some ubuntu versions are known for not working out of the box with TFS.
  4. Sebastian Ching

    Sebastian ChingMember

    Joined:
    Dec 26, 2007
    Messages:
    291
    Likes Received:
    1
    Best Answers:
    0
    ubuntu 10.04
    im using global 9.60 relesead here.
  5. Loney

    LoneyPremium UserPremium User

    Joined:
    Jul 23, 2012
    Messages:
    1,778
    Likes Received:
    105
    Best Answers:
    0
    Grab the old libmysqlclient.so.16 file

    Code (Text):
    1. wget -O /usr/lib64/libmysqlclient.so.16
    2. chmod 755 /usr/lib64/libmysqlclient.so.16
    3. ldconfig
  6. Sebastian Ching

    Sebastian ChingMember

    Joined:
    Dec 26, 2007
    Messages:
    291
    Likes Received:
    1
    Best Answers:
    0
    now appear it


    root@sebastian-desktop:/home/sebastian# wget -O /usr/lib64/libmysqlclient.so.16
    wget: missing URL
    Usage: wget [OPTION]... ... Try `wget --help' for more options.
  7. Loney

    LoneyPremium UserPremium User

    Joined:
    Jul 23, 2012
    Messages:
    1,778
    Likes Received:
    105
    Best Answers:
    0
    Found this on web.. try with this url:

    Code (Text):
    1. wget -O /usr/lib64/libmysqlclient.so.16 http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.16
    2. chmod 755 /usr/lib64/libmysqlclient.so.16
    3. ldconfig
  8. Sebastian Ching

    Sebastian ChingMember

    Joined:
    Dec 26, 2007
    Messages:
    291
    Likes Received:
    1
    Best Answers:
    0
  9. Loney

    LoneyPremium UserPremium User

    Joined:
    Jul 23, 2012
    Messages:
    1,778
    Likes Received:
    105
    Best Answers:
    0
    In the URL, change the 16 for the 15.
    Sebastian Ching likes this.
  10. Ninja

    NinjaGlobal ModeratorStaff MemberGlobal Moderator

    Joined:
    Apr 6, 2010
    Messages:
    5,920
    Likes Received:
    1,528
    Best Answers:
    23
    Code (Text):
    1. apt-get install libmysqlclient-dev
  11. Sebastian Ching

    Sebastian ChingMember

    Joined:
    Dec 26, 2007
    Messages:
    291
    Likes Received:
    1
    Best Answers:
    0
  12. Loney

    LoneyPremium UserPremium User

    Joined:
    Jul 23, 2012
    Messages:
    1,778
    Likes Received:
    105
    Best Answers:
    0
    That means that the file is not available on that website, search for another link with the needed file
  13. Sebastian Ching

    Sebastian ChingMember

    Joined:
    Dec 26, 2007
    Messages:
    291
    Likes Received:
    1
    Best Answers:
    0
    still spear the same error, thanks both anyway
  14. joffily

    joffilyAlcatraz-World Owner

    Joined:
    Jun 28, 2008
    Messages:
    180
    Likes Received:
    0
    Best Answers:
    0
    Why try use one system if you don't know use it?
  15. Air The Star

    Air The StarI love RHEL and nginx

    Joined:
    Jun 22, 2008
    Messages:
    74
    Likes Received:
    2
    Best Answers:
    0
    +1 or apt-get install mysql-server -y (or mysql-client)
  16. Ninja

    NinjaGlobal ModeratorStaff MemberGlobal Moderator

    Joined:
    Apr 6, 2010
    Messages:
    5,920
    Likes Received:
    1,528
    Best Answers:
    23
    Which packets are you using? You may have missed one that is important.
  17. Sebastian Ching

    Sebastian ChingMember

    Joined:
    Dec 26, 2007
    Messages:
    291
    Likes Received:
    1
    Best Answers:
    0
    Thanks every ppls who help me. 
    Solved


728x90


So, I am trying to use the coinbase API. I'm attempting a simple test to see if I can make it work, but I'm getting various composer errors.

Currently, I am getting unexpected t 'use' for this code:

            use Coinbase\Wallet\Client;
            use Coinbase\Wallet\Configuration;

            $apiKey = 'public';
            $apiSecret = 'private';
            $configuration = Configuration::apiKey($apiKey, $apiSecret);
            $client = Client::create($configuration);
            $spotPrice = $client->getSpotPrice();
            echo $spotPrice;

So, are my use statements in the wrong place? Ive tried them outside the index function and outside the class. Both yield completely different sets of results than this.

Outside of the Keks class, I get

Fatal error: Class 'Coinbase\Wallet\Configuration' not found in /home/content/61/11420661/html/beta/application/controllers/keks.php on line 15

And inside the class but outside the index() function I get

Fatal error: Trait 'Coinbase\Wallet\Client' not found in >/home/content/61/11420661/html/beta/application/controllers/keks.php on line 4

Is there something wrong in my composer.json maybe?

The full controller is here: http://pastebin.com/4BjPP6YR

You cannot use "use" where you are using it.

The "use" keyword is either in front of a class definition to import other classes/interfaces/traits into it's own namespace, or it is inside the class (but not inside a method) to add traits to the class.

<?php
namespace Foo;

use Different\Class; // use can go here

class Bar {
  use TraitCode; // use can go here

  public function baz() {
    $this->traitFunction('etc');
    // use CANNOT go here
  }
}

I'm using codeigniter when i try to use "use" keyword its throwing error within a method.

SO i just moved it to above class declaration.

<?php
  defined('BASEPATH') OR exit('No direct script access allowed');
  use Auth0\SDK\Auth0;

  class Home extends CI_Controller {

  }
?>

Its working fine.


728x90


I'm writing a website in HTML5 and Bootstrap 4 and I'm trying to turn a square image into a circle. In Bootstrap 3 this was easily do-able with .img-circle, but now I can't seem to get it to work and I can't find any answers online. Has Bootstrap dropped the img-circle class or is my code messed up?

It goes something like this:

<!-- Within a tab-content div --> 
<div class="col-xs-7">
    <img src="img/gallery2.JPG" class="img-circle" alt="HelPic>
</div>

Hope somebody can help me out :)

It's now called rounded-circle as explained here in the BS4 docs

<img src="img/gallery2.JPG" class="rounded-circle">

Demo: http://www.codeply.com/go/FelvOGA7Xn


'WEB > BOOTSTRAP' 카테고리의 다른 글

Font awesome Gallery  (0) 2019.04.27
Spacing  (0) 2018.06.06

+ Recent posts