AJD
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Shopping Cart] Add to cart buttons with different text on themThat doesn’t work either, when I remove the entry in settings, it defaults to ‘Add to Cart’.
Forum: Plugins
In reply to: [Simple Shopping Cart] Add to cart buttons with different text on themYes, it doesn’t work. It reverts to the one in the settings.
Forum: Plugins
In reply to: [Simple Shopping Cart] Add to cart buttons with different text on themNot exactly, I’d like the same functionality as button_image, but like this:
[wp_cart_button name="Test Product" price="19.95" button_text="Purchase this item" description="This is a short description of the product"]Forum: Plugins
In reply to: [Simple Shopping Cart] Add to cart buttons with different text on themOkay, thank you that helps a lot. Is there a button_text option?
Forum: Plugins
In reply to: [Simple Shopping Cart] Put buy now button in nextGen lightbox?Update: After some experimentation I find that in fact this can be done very simply by using a custom template.
The lightbox popup windows are grabbing the title attribute set on the image. We have to insert and parse the shortcode with do_shortcode in the title and wrap it in esc_attr().
Here’s a pastebin of the working template.
Update: After some experimentation I find that in fact this can be done very simply by using a custom template.
The lightbox popup windows are grabbing the title attribute set on the image. We have to insert and parse the shortcode with do_shortcode in the title and wrap it in esc_attr().
Here’s a pastebin of the working template.
Okay thanks. It would be nice if during development it was possible to turn off the cache.
Okay, thanks, feature request added.
Forum: Plugins
In reply to: [Simple Shopping Cart] Put buy now button in nextGen lightbox?Hi, thank you.
I see how the gallery code (template) is working to create the add to cart button. I have moved that file into my child theme so I can edit it. I can get the shortcode to print in the lightbox, but not parse. It must have something to do with the javascript that is creating the lightbox.I figured it out:
if (class_exists('EM_Events')) { $events = EM_Events::get( array('scope' => 'future' , 'limit'=>5) ); foreach($events as $EM_Event){ $EM_POSTID[]= $EM_Event->output('#_EVENTPOSTID'); }Forum: Themes and Templates
In reply to: [Interface] How to add a new div in the header?It is on a site in development, but here is a pastebin of the raw code that goes into functions.php. It is a lot of code, but we are recreating the entire interface_headercontent_details() function which is very long.
Forum: Themes and Templates
In reply to: [Interface] How to add a new div in the header?Per the post above the only way I can see to customize the header is to unhook the function and rehook your own version.
Forum: Themes and Templates
In reply to: [Interface] Logo LinkYou will have to create a child theme and customize the interface_headercontent_details() function. See the topic on that here.
Forum: Themes and Templates
In reply to: [Interface] How to add a new div in the header?Okay, I got this to work by unhooking the interface_headercontent_details function and hooking in my own. I had the priority wrong in my first attempt.
//first remove the original function function remove_interface_header_details() { remove_action( 'interface_header', 'interface_headercontent_details', 10 ); } add_action('interface_header','remove_interface_header_details' , 9 );Then copy and paste the entire interface_header_content_details function and action hook from header-extensions.php into the child theme functions.php. Rename the function and action hook and make your edits:
add_action( 'interface_header', 'my_interface_headercontent_details', 10 ); function my_interface_headercontent_details() { PASTE THE CUSTOMIZED FUNCTION HERE. The main HTML structure is at around line 835. }You only need to wrap your existing h2 site-description in the conditional tags. If you paste it straight in you will have two, also my first code block was missing the closing /h2.
<?php if ( is_front_page()) { ?>Site Description
<?php } ?>