ide79
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Events Calendar] JS and CSS loaded in every pageThanks 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 serverAt 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)) {
Forum: Plugins
In reply to: Can WP hack restrict plug-in from global loading?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
Forum: Fixing WordPress
In reply to: using an extra parameter in an URLHow 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..