Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)
  • Thread Starter keithvaugh

    (@keithvaugh)

    That would be great Frank

    https://www.magva.com

    Thread Starter keithvaugh

    (@keithvaugh)

    Thanks Frank

    Had a look and think it is loading alright. For what ever reason the crtical CSS seems to break the theme. Can’t seem to isolate the issue at all.

    Thread Starter keithvaugh

    (@keithvaugh)

    Thanks lorro, you are a champ. Got it working by changing to max-width in the @media.

    I appreciate your help

    Thread Starter keithvaugh

    (@keithvaugh)

    Hi lorro
    The site is only on a local host while I finalise the design.
    I’ve made a little more progress with it but need to target some CSS at smaller screen sizes. What I have done is add a div to the php and then targeted this with some css to render what I want on a desktop. I need to change the target CSS for smaller sized screens. Here’s what I have:

    add_action('woocommerce_single_product_summary', 'badge', 25);
    			function badge() {
      			echo '<div class="badge"><img src="http://localhost:8888/livesite/wp-content/uploads/2015/08/BADGE.png" style="width:220px;height:220px;"></div>';
    			} ?>

    and in the css:

    .badge {
      float: right;
      margin-top: -220px;
    }
    
    @media (max-device-width: 960px) {
      #site .badge {
      float: none;
      margin-top: 0px;
    }
    }

    However the css is having no affect on the smaller screen size and I cannot see the error in the code.

    Thread Starter keithvaugh

    (@keithvaugh)

    @lorro
    Thanks for the direction above. I managed to get of the way towards my requirements. What I have added is:

    add_action('woocommerce_single_product_summary', 'badge', 25);
    			function magva_badge() {
      			echo '<img src="http://localhost:8888/livesite/wp-content/uploads/2015/08/BADGE.png" style="width:220px;height:220px;">';
    			}

    The problem that remains is that this places the image of the badge either above or below the woocommerce_single_product_summary block (below as I have the priority set to 25). What I want to achieve is to have the badge placed to the right of the block. At present in the CSS (see below) I have set the width of this block to 68%, and ideally I’d like to have the image appear in the remaining 32%

    .woocommerce #content div.product div.summary, .woocommerce div.product div.summary, .woocommerce-page #content div.product div.summary, .woocommerce-page div.product div.summary {
        float: left;
        width: 68%;
    }

    I tried adding a float right to the image and adding a negative value to the margin-top, and while this works, if the width of the page is reduced (i.e. for mobile devices) it shifts the image behind the summary block.

    Thread Starter keithvaugh

    (@keithvaugh)

    Thanks for that lorro. I’ll give it a go a little later today and see what happens. I am suspecting it might appear under the summary section, where I want it positioned beside the summary. Nonetheless it is the start of what I need and maybe some CSS can be applied to it to position it where I want.
    Will certainly be giving it a go.

    Thread Starter keithvaugh

    (@keithvaugh)

    Will have a scan. Thanks for the help Mike.

    Thread Starter keithvaugh

    (@keithvaugh)

    Thanks for that. I’m beginning to grasp the issue. Would it not matter though that the products I am concerned with are on the original live site, and the new products are only on the dev site along side the original products which came from the backup?

    Thread Starter keithvaugh

    (@keithvaugh)

    Ok I think I may be getting it. Each item has a unique ID and each order is associated with these unique ID’s. So in theory if the item ID is the same on both the development site and the live site it might be a matter of just replacing the table containing the orders. Would this be correct (assuming I am brave enough to try it). To be honest there is only one item I am concerned about and all orders are linked to this which might make it a relatively straight forward task.

    I wouldn’t be afraid to give it a try – I have a second clone of the site on my local machine also that I can do some testing on without worry. Is there a particular table I should be on the look for that contains the orders (assuming I get courage to try).
    Thanks for the help.

    Thread Starter keithvaugh

    (@keithvaugh)

    Sorry Mike. Complete nob at this. Don’t really get what you mean. I’m not talking about large numbers of order, possibly 20-30 at max.

    Thread Starter keithvaugh

    (@keithvaugh)

    Thanks for responding Mike.
    I am not sure if I will have conflicts. The original site was used as the starting point for the development, i.e. it was essentially cloned on a localhost. I’d think this should ensure all post ID’s etc would be the same. Granted some products where deleted on the development site and new ones added. There has been a handful of orders placed on the live site and I’d imagine the details for these have to reside in the SQL database. Is it not plausible to take the actual table storing these on the live site and merge it with, or even replace the version that would be on the development site?

    Thread Starter keithvaugh

    (@keithvaugh)

    Thank you will have ago and let you know if I solve it.

    Thread Starter keithvaugh

    (@keithvaugh)

    Hi Lorro. Its not live at the moment – Just have it in a local environment. I have however advanced the code a little:

    .woocommerce.product-columns-3 ul.products li.product, .woocommerce-page.product-columns-3 ul.products li.product {
        width: 32.32%;
    }
    .woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
        float: left;
        margin: 1px 10px 0.1em 0;
        padding: 0;
        position: relative;
    }

    but I can’t get the right item to alight to the right had side. You can view an image at this Link. I want the third column to align to the blue dotted line on the right, just like the first column is aligned to the blue doted line on the left.
    Thanks for you input

    Thread Starter keithvaugh

    (@keithvaugh)

    Thank you Lorro for the link. I had seen the plugin and considered it, however I am trying to minimise the number of plugins.

    I am sure it is a relatively easy fix what I need, but my lack of programming skills is my hinderance. I can add to the functions.php file with ease and I am thinking this is what I will need to do.

    Thread Starter keithvaugh

    (@keithvaugh)

    Did a little more searching on this, and while the above makes sense, what seems to be happening is that went polylang changes the path for ie. domain.com/en/wp-cont… it breaks the configuration.

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