Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter basku

    (@bha100710)

    @wpyogi thanks for replying

    WP HTTP Compression plugin was the conflicting plugin. Disabled it and the site is back to its old glory ??

    Thread Starter basku

    (@bha100710)

    any help would be really appreciated.

    Incidentally when i am logged in as admin, i can assess the backend and the site shows up well.

    the moment i log out, the site gets scrambled.

    thanks for the help

    Hi Sakin

    Thanks for the awesome theme catch-box.

    I have updated some of the social links in the theme option but it does not reflect anywhere on my blog.

    Where do these social links appear ?

    Thanks again

    regards
    Bhaskar

    Thread Starter basku

    (@bha100710)

    Commenting out the line did the work..but it is not an update proof solution.

    If the plugin developer would have used wp_enqueue_style, I could have a permanent solution by adding a custom function.

    Anyways..i never knew about the existence of core function wp_deregister_script.. so defintely a value addition into my arsenal for fututre use ??

    Thanks for your replies.

    Will definetely cross roads again ??

    Thread Starter basku

    (@bha100710)

    Well I could figure out the process but unfortunately the plugin does not use wp_enqueue_style.

    I have already marked this as resolved. Thanks again.

    Thread Starter basku

    (@bha100710)

    thanks Marventus.. I will go with your idea of commenting out the line and including this small css in the main style.css

    thanks again for the support.

    Thread Starter basku

    (@bha100710)

    Will you advice trying this alternative ?

    In the cart plugin i came across the code:

    function wp_cart_css()
    
    {
    
        echo '<link type="text/css" rel="stylesheet" href="'.WP_CART_URL.'/wp_shopping_cart_style.css" />'."\n";
    
    }

    Will Replacing it with this code get it right ?

    if ( is_page()  ) {    echo '<link type="text/css" rel="stylesheet" href="'.WP_CART_URL.'/wp_shopping_cart_style.css" />'."\n";
    	}
    else { <?php } ?>

    But this is not a update proof hack, i guess ??

    Thread Starter basku

    (@bha100710)

    Thanks Marventus/ Voodo – went through the suggested articles.

    And while i think i have followed things said over there, i am still facing issues. The same old js and css files appear in header, even after going through the suggested process.

    Here’s what I did:

    STEP 1: I located the handlers for the plugin in question – “paypal shopping cart”

    add_action('wp_head', 'wp_cart_css');
    
    add_action('wp_head', 'wp_cart_add_read_form_javascript');

    The said plugin does not use

    wp_enqueue_style

    Accordingly the handlers are:

    for css – wp_cart_css
    for js –wp_cart_add_read_form_javascript

    I then used the following code in functions.php. I used an if statement with condition !is_page() because, i needed this plugin to load only on pages and not on single post or archive pages.

    /* ------------------------------------------------------------------------------------
    Code to Deregister unwanted plugin related styles & scripts from loading on all unncecessary pages
    ----------------------------------------------------------------------------------------*/
    
    //Deregister scripts
    add_action( 'wp_print_scripts', 'bhaskar_deregister_javascript', 100 );
    //DEREGISTER wp cart javascript on all posts - load only if is page
    function bhaskar_deregister_javascript() {
    	if ( !is_page() ) {
    		wp_deregister_script( 'wp_cart_add_read_form_javascript' );
    	}
    }
    
    //Deregister styles
    //DEREGISTER wp cart css on all posts - load only if is page
    add_action( 'wp_print_styles', 'bhaskar_deregister_styles', 100 );
    function bhaskar_deregister_styles() {
    	if ( !is_page()  ) {
    	wp_deregister_style( 'wp_cart_css' );
    	}
    }

    Even after this action – the culprit js file and the wp_shopping_cart_style.css still load onto the header in every post and archive page.

    What could i be missing – Any ideas ?

    Thanks for the help.

    Thread Starter basku

    (@bha100710)

    Thanks a lot again.

    time to dig into each of the plugins to look for those intrusive handlers.

    Handlers – here i come ??

    Thread Starter basku

    (@bha100710)

    Thanks Rev. Voodoo for pointing me that direction. I read your post and got some idea. Learnt a new thing.

    I am not a coder by profession – just been playing around with them. Please help me out with the coding.

    Suppose I want to allow a JS
    ” wp-content/plugins/simple-forum/resources/jscript/forum/sf-forum.js?ver=5635″
    to load only if url points to pages starting with /forum, how do i go about doing that.

    I copied your cform code and modified it as follows –

    add_action( 'wp_print_scripts', 'xyz_deregister_javascript', 100 );
    function xyz_deregister_javascript() {
    if ( !is_page('forum') ) {
    wp_deregister_script( 'sf-forum.js?ver=5635' );
        }
    }

    I am not very comfortable especially with the parameters that need to be specified with the wp_deregister_script.

    Thanks again.

    First thing first – you will not loose if you break your theme to any extent. Your content is kept in a separate SQL database and theme is just the way you display it.

    Now for this error – i had the same exact problem a few minutes ago. I could correct it by doing these two things –

    1) I disabled all plugins and enabled them one by one to see if there was a function error.

    2) I located the error line in the file /wp-content/themes/thesis_18/lib/classes/css.php on line 60 and commented out the entire section which pertains to google font selection.

    I commented out this code by adding “/*” in the beginning and */ at the end of this part of the code.

    `foreach ($this->fonts[‘families’] as $area => $active_font) {
    if ($this->stacks->fonts[$active_font][‘google’])
    $google_fonts[] = $active_font;

    if ($area == ‘code’ && !$active_font)
    $this->font_families[$area] = ‘font-family: ‘ . $this->stacks->fonts[$this->fonts[‘families’][‘body’]][‘family’] . ‘; ‘;
    elseif ($area == ‘tagline’ && !$active_font)
    $this->font_families[$area] = ($this->fonts[‘families’][‘header’]) ? ‘font-family: ‘ . $this->stacks->fonts[$this->fonts[‘families’][‘header’]][‘family’] . ‘; ‘ : ”;
    elseif ($area == ‘subheads’) {
    if ($active_font) $this->font_families[$area] = ‘.format_text h2, .format_text h3, .format_text h4, .format_text h5, .format_text h6 { font-family: ‘ . $this->stacks->fonts[$active_font][‘family’] . ‘; }’ . “\n”;
    elseif ($this->fonts[‘families’][‘headlines’]) $this->font_families[$area] = ‘.format_text h2, .format_text h3, .format_text h4, .format_text h5, .format_text h6 { font-family: ‘ . $this->stacks->fonts[$this->fonts[‘families’][‘headlines’]][‘family’] . ‘; }’ . “\n”;
    else $this->font_families[$area] = ”;
    }
    elseif ($area == ‘multimedia_box’)
    $this->font_families[‘multimedia_box’] = ($active_font) ? ‘#multimedia_box { font-family: ‘ . $this->stacks->fonts[$this->fonts[‘families’][‘multimedia_box’]][‘family’] . “; }” : ”;
    elseif ($active_font)
    $this->font_families[$area] = ‘font-family: ‘ . $this->stacks->fonts[$active_font][‘family’] . ‘; ‘;
    }’

    Now it works perfectly well.

    Hi Simon

    Thanks for the great plugin.

    I had been using your custom post plugin with a personal theme of mine.
    It was working great till today and now it has suddenly disappeared.

    To reiterate, i have cross checked these:

    1) I am not confused bween page and post template. I have never used page template plugin. Whn i try to add a new post i get the follwoing msg “no available custom post templates”.

    2) I have cross checked – my template files are in the same folder as the theme’s index.php and the template files begin with `<?php
    /*
    Template Name Posts: Name of my template
    */
    ?>`

    3) I am testing this on a local server/ php5 environment on the latest wordpress. There are no other wp-plugin installed – so no question of conflict.

    4)Strangely – i was using it perfectly well till half an hour back. Infact the last post was done using a custom template and the post still reflects the custom design template. Now even if i try tyo edit this older post (which had used a custom template) – i do not see any dropdown.

    Any ideas ??

    Thread Starter basku

    (@bha100710)

    The matter has been resolved –taking cues from some other posts in the forum…the wp-content folder did not have a eshop_downloads directory…so i manually created one and the error is gone..hope i can see it through now

    Thread Starter basku

    (@bha100710)

    ping2fm was the conflicting plugin..

    now there’s one more issue..searched the forum and not found this anywhere

    When i click on the download tab.. i get the following errors

    Warning!The download directory is not currently writable! File permissions must first be changed.

    Warning: opendir(/home/buildcon/public_html/www.xyz.com/wp-content/uploads/../eshop_downloads/) [function.opendir]: failed to open dir: No such file or directory in /home/bha10071/public_html/www.startnonprofitorganization.com/wp-content/plugins/eshop/eshop_downloads.php on line 46

    i deleted the previous install and did a fresh install..the problem still persists

    Any suggestions how to get over this..

    Thread Starter basku

    (@bha100710)

    this was a fresh install.

    however the problem was solved by deactivating all plugins and then activating them one by one to identify the conflicting plugin.

    thanks a lot !

Viewing 15 replies - 1 through 15 (of 24 total)