• Resolved Jarstan

    (@jarstan)


    Hi – a great plugin but one modification I am trying to make is driving me mad. I need to move the Shipping Address position to the right a little so it is positioned to fit into my envelope windows when printed off. Probably need to move the address about 10% to the right. I’d love to be able to add a quick code snippet for this but everything I have tried has failed so far. I cannot seem to locate the correct templates or hooks to add a CS mod of something like…

    .billing-addresss {width: 60%;float: left;}
    .shipping-addresss {width: 35%;float: left;}

    Can you explain where the mods need to take place or if there would be a simple snippet you could provide to achieve this?

    Many thanks JJ

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author priyankajagtap

    (@priyankajagtap)

    Hi @jarstan,

    I am sorry for the delayed response to this.

    Thank you for your feedback and for using our Print Invoice plugin! I’m glad to hear that you’re finding it useful.

    Could you please confirm if you are using the default or Simple template of our Print Invoice plugin?

    If you are using the Simple template of our plugin, then you can set the alignment as “Right” for the “Shipping Address” option available in the Templates tab of our plugin.
    Screenshot for your reference: https://screenrec.com/share/ns8A0BFXrY

    Please check and let us know if this shows the Shipping address properly on your invoice.

    Thread Starter Jarstan

    (@jarstan)

    Thanks for the response. I am using the default template. Is it possible to target a CSS mod? If so any ideas to adjust the shipping address would be great.

    Many thanks

    Plugin Author priyankajagtap

    (@priyankajagtap)

    Hi @jarstan,

    Thank you for your reply.

    Can you please try adding the below code snippet in the ‘functions.php’ file of your currently active theme?

    The below custom code will shift the shipping address’s position to the right side. You can adjust the changes in the code below as per your requirements.

    function adjust_position_shipping_address() {
    ?>
    <style>
    .shipping-address {
    text-align: right;
    }
    </style>
    <?php
    }
    add_action( 'wcdn_head', 'adjust_position_shipping_address', 20 );

    Please check and let us know if the provided code snippet helps you to achieve your requirements. Also, feel free to ask if you have any queries.

    Thread Starter Jarstan

    (@jarstan)

    Wow – that is brilliant, just what I was after. I can now adjust the delivery address position with my CSS to get it to fit in the envelope windows. Many thanks for you help and excellent support.

    Plugin Author priyankajagtap

    (@priyankajagtap)

    Hi @jarstan,

    You’re welcome! I’m glad to hear the solution worked perfectly for you.

    Feel free to write back to us if you have any further queries or need any further assistance.

    If you like our plugin and our service, then it would be great if you could give us a review here. That would help us immensely.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adjusting position of Shipping Address’ is closed to new replies.