AJD
Forum Replies Created
-
Hi Jeremy, thanks for the reply.
I look forward to the updates. In the mean time, I got it to look okay with some css:
.content .slideshow-slide-caption { background: #222 none repeat scroll 0 0; bottom: 0; font-family: Lato, sans-serif; font-size: 16px; height: auto; left: -20px; line-height: 20px; padding: 10px 20px; position: relative; } .content .slideshow-window { margin-bottom: 120px; }It is not entirely perfect and requires several responsive breakpoints to adjust the .slideshow-window margin, but better than broken captions.
-AJ
Hi, thanks. That would be great.
Forum: Plugins
In reply to: [WP Shortcodes Plugin — Shortcodes Ultimate] Trouble Using Lightbox ContentIt is hard to find the documentation on this, but it is quite easy to get an inline lightbox working:
First from the list of shortcodes screen insert the ‘Lighbox’, make sure you set the selector with ‘.’ or ‘#’, in this case I used: #popup
[lightbox type="inline" src="#popup"][button] Click Here to open popup. This can also be any <a> tag. [/button][/lightbox]Next insert ‘Lightbox content’, here you don’t have to use the . or #, just the same selector from above: popup
[lightbox_content id="popup"]Hello this is in a popup lightbox. You can put anything in here, including shortcodes.[/lightbox_content]Forum: Plugins
In reply to: [LowerMedia Sticky.js Menus] Margin bottom and Admin Bar issueHi,
I’m having the exact same problem. (Genesis, Sample Theme)I’m seeing this inline style, which is adding a lot of margin:
<div id="undefined-sticky-wrapper" class="sticky-wrapper" style="height: 76px; margin-bottom: 76px;">I had to fix it in my css. I also had to add an extra class to account for the sticky object when logged in as admin.
body.admin-bar .is-sticky .nav-primary { margin-top: 29px; }In this case .nav-primary is the object I was targeting to be sticky.
Hi that helps but adds the class to all menu links.
I did some research and it turns out this is a larger issue, and has been reported as a bug in WordPress itself but is not going to be fixed: https://core.trac.wordpress.org/ticket/16382
The solution I am using works across the board for custom post types. But breaks when menu IDs change. By adding the custom post-type to the body class we can then manually target the nav item ID.
// Adds classes for custom post types to body_class() and post_class() function eq_add_post_type_class( $class ) { global $post; //start the query $post_type = get_post_type($post->ID); //get the post type for the page we are on if ( get_query_var('post_type') === $post_type ) { // check the post against the type of the page $class[] = 'post-type-' . $post_type; } return $class; } add_filter( 'body_class', 'eq_add_post_type_class' ); // add the class to the bodyIn style.css add:
.post-type-(manually add class here).menu-item-77 a {styles}The menu-item-ID also needs to be added manually.Update: I would add another star to this review if I could. Support has been extremely helpful.
I also spoke too soon and found the shortcodes to help layout the store, with a lot of styling it is almost there.
[music_store_product id="90" layout="single"] [music_store_product id="92" layout="single"] [music_store_product id="94" layout="single"] [music_store load="singles" columns="3" show_order_by="0"]I looked at the way custom post types are created in music-store.php and rewrite is set to false:
'rewrite' => falseIf you set rewrite like this:
'rewrite' => array('slug'=>'song')or:
'rewrite' => array('slug'=>'collection')Then the plugin will be able to use WordPress permalink settings.
Could you update the pro version of the plugin with this code?
I can modify the core files of the plugin to make these changes, but then those changes will be lost on update.
Even better would be to add a settings option into the plugin to customize the permalinks. For example:
Set the permalink slug for song:__________
Set the permalink slug for collection:__________Thank you.
PS: I’m going to request this on the pro support area.
Hi, my permalinks are already set to “Post name”, and even after updating permalinks the Music Store permalinks still do not look good. I also switched to the default theme to make sure there wasn’t any theme issue stopping permalinks settings from effecting Music Store links.
Could you please advise further?
Thanks.
Thank you.
Forum: Themes and Templates
In reply to: [Interface] How do I change the green accent color?Add this to your style CSS and change the color:
.slogan-wrap {
background-color: #63c6ae;
}Forum: Plugins
In reply to: [Simple Shopping Cart] Put buy now button in nextGen lightbox?That pastebin was deleted for some reason. Here’s the code in a new pastebin.
Forum: Plugins
In reply to: [Simple Shopping Cart] Bulk adding "add to cart" buttonsHi,
If you create a custom template you can generate the add to cart buttons dynamically for each nextgen image.Here is a pastebin of a template that I am using to do it.
This template will output the ‘add to cart’ button in the popup lightbox window of every gallery image using the template.
I figured it out, had to assign it to a string:
$imap = C_Image_Mapper::get_instance(); $gmap = C_Gallery_Mapper::get_instance(); $storage = C_Gallery_Storage::get_instance(); foreach ($gallery->displayed_gallery->container_ids as $id) { $image = $imap->find($gmap->find($id)->previewpic); $thumburl = ($storage->get_image_url($image, 'thumb')); } echo $thumburl;Thanks!
Hi,
When I use it I get extra characters before the url. The output looks like this:
string(97) "http://..... /thumbs/thumbs_13-cover-1.jpg"I can’t seem to modify it to just show the url.
Thanks
Forum: Plugins
In reply to: [Simple Shopping Cart] Add to cart buttons with different text on themThe description option is a nice feature, however it still creates the same ‘add to cart’ button for each product.
In my case I need to dynamically generate the title of each button to reflect the product. So, instead of a photo of a man on a horse with an ‘add to cart’ button underneath, the button would be: ‘buy photo: man on horse’… where ‘man on horse’ is the title of the photo.
If there is a ‘button_text’ parameter, then it could be populated dynamically with title of an image or page.
It seems that I might need to put it in as a feature request.
For example, in a template file, get the title in a string and insert it into the button. :
$button = esc_attr(get_the_title()); echo do_shortcode(" [wp_cart_button name='$button' price='10' button_text='Buy: $button'] ")