Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter ide79

    (@ide79)

    Thanks for the help, but it did not do the trick.

    I am using Events-calendar 6.6-beta
    and the pages are in a Local testing server

    At around line 200 there is
    if(isset($_GET['page']) && strstr($_GET['page'], 'events-calendar')) {
    That line is in the function EventsCalendarManagmentINIT()

    Seems to me that the js and the css comes from events-calendar.php around line 160

    function EventsCalendarINIT() {
    $inadmin = strstr[$svr_uri, 'wp-admin');
    if (!$inadmin) {
    wp_enque_scirpt('....');
    }

    Is it possible to call if( is_page(999)) from events-calendar.php ?

    Tried if ((!$inadmin) && (is_page(999)) {

    I have the same problem. Lots of JS and CSS that should not be loaded in every page. There is a sollution for contac-form-7

    Put these to wp-config.php

    define ('WPCF7_LOAD_JS', false);
    define('WPCF7_LOAD_CSS', false);

    And to call WPCF7 in a page

    <?php
    	wpcf7_enqueue_scripts();
    	wpcf7_enqueue_styles();
    ?>

    Before wp_head() is called

    More info from contac-form-7 homepage > docs

    How do i pass the second variable like

    index.php?pagename=mypage&myvar=$matches[1]&myvar2=$matches[2]
    “mypage/country/city/”

    Have tried now for many hours with no result..

Viewing 3 replies - 16 through 18 (of 18 total)