Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
You guys are so awesome!!! Thanks so much! That helps me so much!
Thanks again!!
Thanks for the code!! I applied it to my child-theme functions.php and it appears to still be at the top of the JS files. See the screenshot for it’s location, highlighted in yellow.
Attachments:
You must be logged in to view attached files.Hi Mohammad,
In my child theme’s functions.php I am using this code:
if ( !is_admin() ) { // instruction to only load if it is not the admin area // register your script location, dependencies and version wp_register_script( 'custom-abend-javascript', get_stylesheet_directory_uri() . '/custom-abend-javascript.js', false, '1.0', true ); // enqueue the script wp_enqueue_script('custom-abend-javascript'); }
I also tried this code as well:
add_action( 'wp_enqueue_scripts', 'child_add_scripts' ); /** * Register and enqueue a script that does not depend on a JavaScript library. */ function child_add_scripts() { wp_register_script( 'custom-abend-javascript', get_stylesheet_directory_uri() . '/custom-abend-javascript.js', false, '1.0', true ); wp_enqueue_script( 'custom-abend-javascript' ); }
Thanks!
Thanks I finally found it. Awesome!!!
Thanks again!
Hi Rui,
Right but they are rendered as one section/row bootstrap style. So 1/3 and 2/3 are one section, and 1/3 and nothing is another section. Is there any way using CSS I can get two 1/3’s and one 2/3 to be similar to an inline-block instead of just block elements? This way I can have two 1/3’s stacked while next to a longer 2/3 grid? I attached the image again to show the existing behavior that I am trying to change.
Thanks!
Jay
Attachments:
You must be logged in to view attached files.Thanks guys!
I went ahead and just wrote some custom jQuery to run a loop on each portfolio image and add the data-title attribute from the item title, and add the data-caption from the subtitle and excerpt. This might help others who would like to use these data attributes on iLightBox:
(function ($) { $('.portfolio-item').each(function () { var figure_image = $(this).find('.animated-overlay a'), item_title = $(this).find('.portfolio-item-title a').html(), item_subtitle = $(this).find('.portfolio-subtitle').html(), item_excerpt = $(this).find('.portfolio-item-excerpt p').html(); $(figure_image).attr('data-title', item_title).attr('data-caption', item_subtitle + " - " + item_exerpt); }); })(jQuery);
Cheers!
Hi Mohammad,
I replaced the line of PHP from the other post you suggested. My lightbox always worked so not sure if that other post is related to my issue. I am still seeing two of the same image in the lightbox when I open that page up.
Also I was just curious if there is an easy way to add captions to the images when the lightbox is open.
Thanks!
Ok sounds good. Thanks for clarifying!
This reply has been marked as private.This reply has been marked as private.That is correct, you do have this feature for the Dante Theme. However, the ability to tap on a link in the portfolio carousel that takes the user to the portfolio item, does not work unless you disable the swipe functionality of swiping through the carousel.
If this does work out of the box, then I will need some additional help maybe?
thanks so much!
That would be awesome Ed and will make my client very happy!
Thanks!
Hi Rui!
Thank you for your response. I am using the specific portfolio category, but I am not looking to use pagination. I am more referring to the portfolio pages themselves. When you look at the portfolio page (image attached) the Prev/Next buttons take you through the various portfolio items. I am hoping to have the prev/next buttons to only cycle through a category, and not through every single portfolio item I have created.
From a UX perspective I want the user to cycle through the portfolio pages for that artist without having to go back to the artist page that contains the portfolio asset. Currently it go through every portfolio item. Not sure if it’s possible, but thought I would ask.
Thanks so much!
Attachments:
You must be logged in to view attached files. -
Posted in: We hit Power Elite.