Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • in reply to: CSS for Geo Directory #191357
     bingoenvato
    Participant

    Strange behaviour:

    This disabled Lightbox on certain CPT (product, bullishow) too.

    COPY CODE
    add_action( 'wp_print_scripts', 'vanagogo_javascript', 100 );	
    function vanagogo_javascript() {
       if ( ! is_singular( array('page', 'attachment', 'post') ) ) {
           wp_deregister_script( 'gmw-js' );
       }	
    }

    This solves the issue:

    COPY CODE
    add_action( 'wp_print_scripts', 'vanagogo_javascript', 100 );	
    function vanagogo_javascript() {
       if ( ! is_singular( array('page', 'attachment', 'post', 'product', 'bullishow') ) ) {
           wp_deregister_script( 'gmw-js' );
       }	
    }
    in reply to: CSS for Geo Directory #191350
     bingoenvato
    Participant

    Hi Radu,

    thank you for the hint, but unfortunately this does not work, but I found this

    COPY CODE
    add_action( 'wp_print_scripts', 'vanagogo_javascript', 100 );	
    function vanagogo_javascript() {
       if ( ! is_singular( array('page', 'attachment', 'post') ) ) {
           wp_deregister_script( 'gmw-js' );
       }	
    }

    So far GeoMyWP CSS in Geodirectory is right.

    Perhaps you have a more elegant solution to this.

    in reply to: CSS for Geo Directory #191059
     bingoenvato
    Participant

    Hi Radu,

    tried this:

    COPY CODE
    add_action( 'wp_print_scripts', 'vanagogo_javascript', 100 );	
    function vanagogo_javascript() {
       if ( is_page_template( 'geodir-listing.php' ) ) {
           wp_deregister_script( 'gmw-js' );
       }	
    }

    and this:

    COPY CODE
    add_action( 'wp_print_scripts', 'vanagogo_javascript', 100 );	
    function vanagogo_javascript() {
       if ( is_page( 1 ) ) {
           wp_deregister_script( 'gmw-js' );
       }	
    }

    The second one with page ID works, but the listings called with an Geo Directory-archive template ( 1. snippet above ) does not work.

    But this is, what I need. Do you have any further suggestion?

    in reply to: CSS for Geo Directory #189142
     bingoenvato
    Participant

    Try to add this

    COPY CODE
    function dequeue_my_css() {
      wp_dequeue_style('gmw-style-css');
      wp_deregister_style('gmw-style-css');
    }
    add_action('wp_enqueue_scripts','dequeue_my_css');

    to disable GeoMyWP-CSS, but does not work. Seems there are two CSS files loaded from the GEoMy WP-PlugIn:

    COPY CODE
    <link rel="stylesheet" id="gmw-style-css" href="https://vanagogo.de/wp-content/plugins/geo-my-wp/assets/css/style.css" type="text/css" media="all">
    <link rel="stylesheet" id="gmw-cl-style-dep-css" href="https://vanagogo.de/wp-content/plugins/geo-my-wp/assets/css/gmw-cl-style-dep.css" type="text/css" media="all">

    So, I just need to disable this for the listing templates of Geo Directory to solves.

    Can you help me on this?

Viewing 4 posts - 1 through 4 (of 4 total)

Log in with your credentials

Forgot your details?