- This topic has 2 replies, 2 voices, and was last updated 11 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore – compact shopping cart shortcode output layout
Tagged: Compact Cart, Image Layout
Please see the following screenshot:
[http://i.imgur.com/jIWRsz9.png]
How can I configure the layout of that compact cart plugin, so that the cart icon image is to the left of the text (not on top of the text)?
FYI, I am using the following code:[wp_eStore_display_compact_cart show_empty=1
show_sub_total=1 show_title=0 show_cart_image=1]
Thanks!
Hi,
To achieve what you want you will have to modify some code from the eStore extra shortcodes plugin – something we don’t usually recommend and which you should only do if you feel you are confident enough to do so.
More specifically, you will need to modify the file called “shortcode_include.php” inside the root directory of the eStore extra shortcodes plugin.
Go to the code inside the function called “eStore_display_compact_cart” and remove the applicable <br />
tags which are displaying the text underneath the cart image.
NOTE: You will need to keep a backup copy of the file you modified because your changes will be overwritten if you update the extra shortcodes plugin in the future.
Thanks. That worked great. In case it helps anyone, I also aligned the image left and added a right margin as follows:
$output .= “<input type=’image’ src='”.WP_ESTORE_URL.”/images/shopping_cart_icon.gif’ value=’Cart’ title=’Shopping Cart’ align=’left’ style=’margin-right:10px’/>”;