Forum Replies Created

Viewing 15 replies - 16 through 30 (of 51 total)
  • Thread Starter meeble

    (@meeble)

    Mark,

    Update: I migrated my site over to a new server with PHP 5.4.10 and now transients are working fine with APC object cache enabled. I also switched from mod_fcgid to php-fpm – not sure if that could have anything to do with it.

    Thanks,
    Devin

    Thread Starter meeble

    (@meeble)

    Hi Mark,

    Any ideas about how to fix this?

    Thanks,
    Devin

    Thread Starter meeble

    (@meeble)

    Yes, I am using the latest version: 1.5.6

    It could always be an issue with one of my other plugins, I just haven’t had time to manually go through each one. I’ll start doing that right now…

    Well, there it is. one of the first ones I disabled: Role Scoper

    Anyway, I’ll message them about this issue. Sorry to bother you!

    Thread Starter meeble

    (@meeble)

    FINALLY!

    this actually works.

    function dequeue_styles() {
        wp_deregister_style( 'twentytwelve-style' );
        wp_dequeue_style( 'twentytwelve-style' );
    }
    add_action( 'wp_print_styles', 'dequeue_styles' );
    
    // enqueue parent stylesheet before child css and minify
    function parent_styles()
    {
    wp_register_style( 'twentytwelve',
    get_template_directory_uri() . '/style.css'
    );
    wp_enqueue_style( 'twentytwelve' );
    }
    add_action('wp_enqueue_scripts', 'parent_styles');
    
    function child_styles()
    {
    wp_register_style( '2012',
    get_stylesheet_directory_uri() . '/style.css'
    );
    wp_enqueue_style( '2012' );
    }
    add_action('wp_enqueue_scripts', 'child_styles');
    Thread Starter meeble

    (@meeble)

    well, after upgrading WP, the functions.php got replaced, which made me realize that this isn’t a good solution. I’ve spent several hours trying to minify the parent twentytwelve css file, but I just can’t seem to make it work. Currently, I can get the parent style.css to load in above the child style.css in the html, but as soon as I enable BWPM, it moves the parent style.css further down, which breaks my child css. This really shouldn’t be so complicated…

    Thread Starter meeble

    (@meeble)

    never mind my last post, bad css code was breaking my stylesheet.

    Thread Starter meeble

    (@meeble)

    For now, I am just using a shortcode on a page to output the links of a certain category, which does the job. But for some reason, I can’t get your css to work on the output.

    .simple-links-list li {
    width: 30%;
    float: left;
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    Thread Starter meeble

    (@meeble)

    Ok, got it working. I ended up putting this in my functions.php file:

    function parent_styles()
    {
        wp_register_style( 'twentytwelve',
        get_template_directory_uri() . '/style.css',
        array(),
        '20121205',
        'all' );
    
      wp_enqueue_style( 'twentytwelve' );
    
    }
    add_action('wp_enqueue_scripts', 'parent_styles',11);
    
    function child_styles()
    {
        wp_register_style( '2012',
        get_stylesheet_directory_uri() . '/style.css',
        array(),
        '20121205',
        'all' );
    
      wp_enqueue_style( '2012' );
    
    remove_action('wp_head', 'wlwmanifest_link');
    remove_action('wp_head', 'wp_generator');
    }
    add_action('wp_enqueue_scripts', 'child_styles',12);

    and I commented this line out of my parent’s (twentytwelve) functions.php file:

    wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );

    I hate having to mess around with my parent theme’s files, but it works now.

    Thread Starter meeble

    (@meeble)

    ugh, this is so frustrating. Ok, so I took out the @import line from my child style.css file. Then I added this to my functions.php file:

    function theme_styles()
    {
      wp_enqueue_style( 'twentytwelve' );
    }
    add_action('wp_enqueue_scripts', 'theme_styles');

    But all this does is dynamically insert the @import line back into my child style.css which means BWPM isn’t minifying it.

    Thread Starter meeble

    (@meeble)

    actually, now it seems that my child theme’s style.css isn’t quite working right. It IS loading, but some of my style declarations don’t seem to be working now that I’ve changed the way I’m importing in the parent theme’s css. how strange. Could it be that the parent theme css is now being called after the chils theme css, hence overriding it? It is being loaded further down the page, it seems…

    Thread Starter meeble

    (@meeble)

    Hi,

    Thanks for the response. I think I finally got it working. I do have one question though…

    Here’s my site: http://laserlightshows.us

    When looking at my page source, I see two css files:

    <link rel='stylesheet' id='twentytwelve-style-css'  href='http://cf.laserlightshows.us/wp-content/min/?f=wp-content%2Fthemes%2F2012%2Fstyle.css&ver=3.5-RC3' type='text/css' media='all' />
    
    and 
    
    <link rel='stylesheet' type='text/css' media='all' href='http://cf.laserlightshows.us/wp-content/min/?f=wp-content/plugins/contact-form-7/includes/css/styles.css,wp-content/themes/twentytwelve/style.css' />

    why aren’t these combined into one file?

    I was also wondering why the slashes in the first URL were being html entity encoded?

    Thanks,
    Devin

    Thread Starter meeble

    (@meeble)

    Hi Matt,

    Thanks for the response. So, if I already have two instances of the SL widget on my site, and I add a 3rd for this purpose, how do I specify:

    a. that the filter uses the output of the 3rd widget?
    b. to not display the 3rd widget in the sidebar?

    Thanks,
    Devin

    Thread Starter meeble

    (@meeble)

    Sorry to be such a bother,

    I would also like to take all the links of a certain link category and output them on a page, but I would like to format the output into a 3 column table. Is there an easy way to use the built-in filters to accomplish this?

    Thanks

    Thread Starter meeble

    (@meeble)

    Ok, I figured out how to modify the widget query using code like this:

    $query_args['meta_query'] = array(array( 'key' => 'state','value' => array('','arizona'),'key' => 'metro','value' => array('all','phoenix') ));

    but…

    I haven’t had much luck in modifying the widget query based on link categories. Any help would be appreciated!

    Thread Starter meeble

    (@meeble)

    Hi Mark,

    Thanks for your quick response. The first time I ran the page, I got this response:

    string(3) “bar”

    After commenting out the set_transient line, I get this:

    bool(false)

    Here’s the info you asked for:
    APC version: 3.1.13
    PHP version: 5.3.3
    Backend version: 2.0.4
    WP version: 3.5 RC2 (this is a new dev site)
    Single server? yes

    Thanks again!

Viewing 15 replies - 16 through 30 (of 51 total)