hilmon
Forum Replies Created
-
line 831 …..
'CA' => array('state' => array( 'label'=> __('Province','woocommerce'), 'placeholder' => __('Province', 'woocommerce') ) ),
But I think this is used only on the checkout page….
check out
class-wc-countries.php
that’s where all the location specific stuff is dealt with … I haven’t quite figured out how to hook into some of it yet tho ….Actually,
I realise I can change it with css
position:absolute
but I’d rather not do it that way if possible.I’m getting
smush.it error could not get the image while processing
:-/
Lots of forum comment with similar issues but can’t seem to find an answer anywhere….
Further to @holywebmaker …
Here’s the list of hooks so you can remove the ones you don’t want…
such as…
remove_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 10 );
https://github.com/woothemes/woocommerce/blob/master/woocommerce-hooks.php
Forum: Plugins
In reply to: [Verve Meta Boxes] [Plugin: Verve Meta Boxes] Date Picker fixThank You Thank You Thank You…….. ??
Forum: Everything else WordPress
In reply to: Random CSS in IE question..<div style="position:relative; width:100px; height:100px; top:100px; left:100px; background:red;"> <div style="position:absolute; width:50px; height:50px; top:10px; left:10px; background:black;"></div> </div>
See what I mean!!!
Forum: Everything else WordPress
In reply to: Random CSS in IE question..That’s why the parent container of your div needs to be position:relative. Then your div’s absolute position will be relative to the parent… not the screen.
Forum: Everything else WordPress
In reply to: Random CSS in IE question..<div style="position: absolute; margin-left:100px; margin-top:30px">
If your positioning is absolute you might as well not use margins and use
<div style="position:absolute; left:100px; top:30px">
Make sure that the parent of your div has position:relative or position:absolute.
Just installed SFC … looking forward to seeing what it can do ??
Forum: Fixing WordPress
In reply to: disable admin bar for Subscribers?A plugin seems overkill to me ….
Here’s a great article https://digwp.com/2011/04/admin-bar-tricks/
To totally disable the admin bar simply place…
show_admin_bar(false);
…in your functions.php
There are many more permutation in the article.. well worth checking out.
(no i didn’t write it ??
Forum: Plugins
In reply to: [CSV Importer] [Plugin: CSV Importer] Post ThumbnailI second that !!!! ??
Forum: Fixing WordPress
In reply to: Accessing array object keysBy the way came across this resource for php arrays…. study time again I think!!!
Forum: Fixing WordPress
In reply to: Accessing array object keysGot it working….
Luckily each post only has a single term so…
This is outside the loop as I’m using 2 different taxonomy templates
$terms = get_the_terms( $post->id, 'antique_jewellery' ); foreach ( $terms as $term ) { $id = $term->term_id; } $GLOBALS[ 'item-total' ] = $terms[$id]->count;
This is inside the loop as I’m using single-loop.php for both taxonomies.
<?php $item_num = $post->menu_order; $item_num++; ?> <p>Item <?php echo $item_num; ?>of <?php echo $GLOBALS['item-total']; ?></p>
I’m using this in conjunction with the https://www.ads-software.com/extend/plugins/ambrosite-nextprevious-post-link-plus/ plugin.. which populates the ‘menu-order’ key. Nice plugin by the way!
Here’s a link to see it all in action!
https://www.dankerantiques.com/antique/silverware/irish-silver-embossed-circular-bowl/
Thanks for all your help!
Forum: Fixing WordPress
In reply to: Accessing array object keys@david that didn’t work, since the object is inside a nested array…. Damn, I’m really gonna have to learn more php :-/
I’ve simplified the query by using…
$terms = get_the_terms( $post->id, 'antique_silverware' );
Which returns..
Array ( [26] => stdClass Object ( [term_id] => 26 [name] => Mugs [slug] => mugs [term_group] => 0 [term_taxonomy_id] => 130 [taxonomy] => antique_silverware [description] => [parent] => 0 [count] => 8 [object_id] => 684 ) )
So I just need to access the value of [count]…
echo $terms[26]->count;
This works but I need to find a way to reference [26] as a variable. This being (as vtzyzzy pointed out)… the term_id.
Thanks for your help guys…. I’m sure this, like most things is simple enough, when you know how, but it has me totally stumped…
Forum: Fixing WordPress
In reply to: Accessing array object keysThanks, but I actually need those 2 array keys …
[‘antique_silverware’][26]
.. to be dynamic as I’m using this in the single-loop.php template.
I can set the first key ok but [26] I’m not so sure…