-
AuthorPosts
-
October 17, 2017 at 12:12 pm #865251
is there a way to make the whole portfolio box title field clickable to show the ajax preview pop up? not just, when the title text is clicked?
website: http://arstexendi.netzhautflimmern.ch/- This topic was modified 7 years, 2 months ago by netzhautflimmern.
October 18, 2017 at 5:43 am #865533Hey netzhautflimmern,
Please, may you provide to us your website link and the WP and FTP credentials?
Best regards,
John TorvikOctober 25, 2017 at 11:21 am #868661´yes sure.. thanx
October 27, 2017 at 8:19 am #869448Hi,
Thank you for the info. This is possible but you have to modify the js > shortcodes.js file. Look for the following code around line 1893.
container.on("click", "a", methods.load_item);
Replace it with..
container.on("click", ".grid-entry", methods.load_item);
Best regards,
IsmaelOctober 30, 2017 at 11:59 am #870418thanx,.. but unfortunately that didnt work out..
October 30, 2017 at 2:48 pm #870486Hi netzhautflimmern,
Can you put the code in there for us to test a bit more please.
Best regards,
VictoriaOctober 30, 2017 at 3:04 pm #870491sure, it is in there now..
October 30, 2017 at 8:59 pm #870643Hi,
Can you please post FTP logins here privately as well?
Actually Ismael’s suggestion is working (you can try clicking the edge of the boxes) but there seems to be another JS related issue.Best regards,
YigitOctober 31, 2017 at 11:31 am #870801November 4, 2017 at 3:26 am #872357Hi,
Thank you for the info. However, we actually need the FTP details.
Please look for this line.
var link = $(this), post_container = link.parents('.post-entry:eq(0)'), post_id = "ID_" + post_container.data('ajax-id'), clickedIndex = items.index(post_container);
Replace it with:
var post_container = $(this), post_id = "ID_" + post_container.data('ajax-id'), clickedIndex = items.index(post_container);
Best regards,
IsmaelNovember 7, 2017 at 7:25 am #873563I sent you the ftp logins already…
in which file can I find the code?November 8, 2017 at 5:37 am #874002Hi,
It’s in the same file. I’m sorry but I can’t find the FTP details in the thread. Please include the url.
Best regards,
IsmaelJanuary 9, 2018 at 5:37 pm #895300ftp logins
January 10, 2018 at 11:09 am #895602Hi,
The FTP login details are not working. Please check it carefully. If you follow the previous suggestion properly, the whole portfolio box should be clickable.
Best regards,
IsmaelJanuary 10, 2018 at 12:05 pm #895622unfortunately this doesnt work, and it makes the ajax pop up not open but keep loading.
I checked the FTP logins and they work at my end. Can you please retry?January 10, 2018 at 6:46 pm #895785Hi,
FTP logins worked for me. I added following code to functions.php file of your child theme
function wp_change_shortcodesjs() { wp_dequeue_script( 'avia-shortcodes' ); wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 2, true ); } add_action( 'wp_print_scripts', 'wp_change_shortcodesjs', 100 );
and copied /js/shortcodes.js file into your child theme and applied the changes Ismael suggested. Please flush browser cache and review your website.
Best regards,
YigitJanuary 13, 2018 at 12:39 pm #896880thank you very much, that worked.
January 13, 2018 at 11:17 pm #896970Hi,
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
Yigit -
AuthorPosts
- The topic ‘make whole portfolio title box clickable’ is closed to new replies.