Forum Replies Created

Viewing 15 replies - 106 through 120 (of 121 total)
  • I too am having an issue figuring this out.

    Here is my options page code

    acf_add_options_sub_page(array(
            'page_title'    => 'Theme Header Settings',
            'menu_title'    => 'Header',
            'parent_slug'    => 'theme-general-settings',
        ));

    I tried adding the “post_id” parameter and giving it an obscure number (9256), then adding this to my config file

    {
      "admin_pages": [
        9256
      ],
    }
    

    No luck.

    Thread Starter jordanwebdev

    (@jordanwebdev)

    *EDIT*: Nevermind what I said here.

    • This reply was modified 8 years, 11 months ago by jordanwebdev.
    Thread Starter jordanwebdev

    (@jordanwebdev)

    @optimizingmatters

    Frank, I think you’re right, because when I try to get the score for another page on the same site, I get 98/100 and don’t see these issues about render-blocking CSS.

    The biggest difference between these two pages is that the one with the lower score has a giant hero banner that is blank and shows a loading spinner until it is loaded in, and then the image fades in. I think page speed is seeing the image when it is loaded and is assuming that I am not including enough CSS to display it properly, but I don’t want to show this image until it is fully loaded and rendered.

    I know this is going off topic now, but would you happen to have any ideas how I could improve this issue? Thanks for your help.

    Thread Starter jordanwebdev

    (@jordanwebdev)

    I was able to get this to work! The issue was that under “Other Options” > Thumbnail Options > Default thumbnail dimensions, there were no dimensions set. I put it back to the default 240 x 160 and now it works! Set fix dimension is also set to yes, FYI.

    Hi, I too am wondering how to use this. I followed the video. I use Autoptimize. Do I just paste that code into the Inline and Defer CSS field? Do I have to manually go into my CSS files and remove this code as well?

    As it is now, I just entered that blob of code into Autoptimize’s input field, but don’t notice any difference on Google Page Speed Insights. It’s still telling me to optimize delivery of the giant CSS file generated by Autoptimize.

    I have the same question you do. What I did was I chose the embed option from the builder, and I also exported as a custom theme, using underscores. What it does is it gives you an admin folder within your theme. I found an options-init.php file which I modified a bit and it seems to work. However, I’m not sure if this is the correct approach. Also, I’m wondering how we could get security patches using the embedded method.

    Thread Starter jordanwebdev

    (@jordanwebdev)

    It’s an interesting feature that I think many people would appreciate – perhaps you would consider adding it? I actually still have a copy of the old plugin, so I was able to replicate this feature into my newer version. Would you please review it for me and let me know if the implementation is a secure? It would benefit you, too, if you were wondering how it was pulled off and/or considering adding it. All you have to do is a search for ‘poll_image’ in the file and it’ll show how it was added. Do you have an e-mail address that I can send the file to?

    Thread Starter jordanwebdev

    (@jordanwebdev)

    I solved the issue. I added a new get variabled called “weight-range” to filter by. It was already a custom attribute that just wasn’t being used, so I am in the process of adding it to each product.

    Thread Starter jordanwebdev

    (@jordanwebdev)

    I found the issue was in the get variables. They are grabbing term ids, but if I change them to names instead, it works. However, for the weight range, I am still running into issues…Here is the code in question:

    `<div>
    <select style=”z-index: 10; opacity: 0; -webkit-appearance: none; ” class=”select” title=”Carat Weight” name=”pa_weight” id=”pa_weight”>
    <option value=””>Carat Weight</option>
    <?php
    //$weight_value = ”;
    $weight = get_terms(‘pa_weight’);
    $weight_range = get_terms(‘pa_weight-range’, ‘orderby=id&hide_empty=0’);
    foreach ( $weight_range as $wt )
    {
    $we = @explode(‘-‘,$wt->name);
    $min_we = ”;
    $max_we = ”;
    $weight_name = ”;
    if($we[1] != ‘up’){
    $min_we = $we[0];
    $max_we = $we[1];
    $weight_name = $min_we.” – “.$max_we;
    } else {
    $min_we = $we[0];
    $max_we = 20.00;
    $weight_name = $min_we.” and Up”;
    }
    $weight_value = ”;
    //echo $min_we.”–“.$max_we; exit;
    //$weight_range_id = array();

    foreach ( $weight as $wet )
    {
    if((float) $wet->name >= (float) $min_we && (float) $wet->name <= (float) $max_we )
    {
    //$weight_range_id[$wet->name][] = $wet->term_id;
    $weight_value .= $wet->term_id.”,”;
    }
    }
    //echo “

    ";print_r($weight_range_id);exit;
    				$weight_value = rtrim($weight_value, ",");
    				if($weight_value == '')
    					$weight_value = 'none';
    			?>
    			        <option value="<?php echo $weight_name; ?>" <?php if($_REQUEST['filter_weight'] == $weight_value ) {?>selected<?php } ?>><?php echo $weight_name; ?></option>
    • This reply was modified 9 years, 7 months ago by jordanwebdev.
    Thread Starter jordanwebdev

    (@jordanwebdev)

    Thank you for taking the time to look into this issue for me. I will try your suggestion tomorrow and post back here with the result.

    Thread Starter jordanwebdev

    (@jordanwebdev)

    1. The one with the bold title: “sample insurance portfolio”. It’s near the top, right under the title “Sample data files”
    2. Yes. Should I be doing it in chunks?\
    3. I’m not modifying them. Is there a page I can visit that explains what the CSV needs to look like?
    4. I’m not sure how to do this

    Thread Starter jordanwebdev

    (@jordanwebdev)

    Okay, well at least I know I’ve been doing things right. On one hand it means inconvenience for the client, on the other, maybe it means more money for us if they have us fix the issue for them, lol.

    By the way, I think WooCommerce is amazing. I was completely surprised by just how much it does out of the box. Nice job!

    Thread Starter jordanwebdev

    (@jordanwebdev)

    Thanks, that filter seems very useful!

    I’m finding, though, that there are a lot of changes I need to make to template files in order to get the site looking exactly like it needs to be. The issue, then, is when WooCommerce updates template files, the client sees that WooCommerce is out of date, and rightfully so will want to update the plugin.

    Just recently I noticed I had to update some template files due to a WooCommerce plugin update. Note that I did not modify the plugin directly, but instead copied the template files over to my theme and overrode them. Still, I had an issue where the review starts were displaying beside each other (looking like 10 stars rather than 5, ha!). For me I believe it was just a simple fix of updating the version numbers in my theme, and maybe deleting one template, but I don’t want a client to have to deal with this.

    What is the best practise so clients don’t have to worry about these things? I’d hate for them to just not update and then they get hacked due to a security vulnerability…

    Thread Starter jordanwebdev

    (@jordanwebdev)

    Thanks for that suggestion. Sorry to bother, but I’m having an issue with that method.

    Here’s the div I’m using to hold my background image:

    <div class='img-wrap' style='background: url(<?php echo the_post_thumbnail_url( 'medium' ); ?>) 50% 0% no-repeat; background-size: cover'></div>

    I would expect this to grab the 300×300 image, but it goes to the default full sized one instead. I checked the uploads folder, and there has indeed been a 300×300 version generated. Any clue why it’s not working?

    Thread Starter jordanwebdev

    (@jordanwebdev)

    Oh, that’s unfortunate. Are there any workarounds? Sometimes, it’s much easier to style an image if it’s a background. You have nice options like background-size: cover and contain.

Viewing 15 replies - 106 through 120 (of 121 total)