-
AuthorPosts
-
September 26, 2019 at 12:12 pm #1142236
hi all,
not sure im using the correct language here.
i would like to in my easy slider and full screen sliders to just show the arrows and not how many images there are in the show, with the little dot things at the bottom what ever they are called. I know i can hide both which i have done in control styling, but as i have quite large slide shows the rows of dots are distracting but the arrows are not.
would be nice to know an easy way of not having these visible if possible, might be an add on you could consider in an update.
cheers
en
September 28, 2019 at 11:40 pm #1143047Hey isreynolds_137,
sorry for the late reply, It looks like you are already hiding the arrows and dots, so to hide only the dots please remove your other code and then use this in your Quick CSS and then clearing your browser cache:.avia-slideshow-dots.avia-slideshow-controls { display: none !important; }
If this doesn’t help, then please remove your other code so the arrows and dots show and we can then only hide the dots.
Best regards,
MikeOctober 1, 2019 at 10:18 am #1143624ok wicked ill give it a try cheers en
October 1, 2019 at 10:40 am #1143634yes all good works great cheers en, now for random slide shows
October 2, 2019 at 5:58 am #1144052Hi,
It sounds like this was a success, glad we could help. But did you want the images to show in a random order?
I believe this code at the end of your child theme functions.php file will help, please use ftp to add the code should it crash your site, you can then easily remove:add_filter('avia_masonry_entries_query','avia_order_by_random', 10, 2); function avia_order_by_random($query, $params) { $query['orderby'] = 'title'; $query['order'] = 'rand'; $terms = explode(',', $params['categories']); if (!empty($terms) && in_array(1, $terms)) { $query['orderby'] = 'date'; } return $query; }
Best regards,
MikeOctober 2, 2019 at 12:17 pm #1144137cheers mike,
yes got the no round things to work, but that functions code did not work and left me with a weird string of code across my site, which did not go away when replaced with original functions file, as im not expert im rolling my database and files back to yesterday to fix the problems. when that error was not there. cheers en
October 4, 2019 at 6:36 am #1144879Hi,
I checked your site but didn’t find any odd string of code across your site, but if you would please include ftp access to your site I can try to restore your site by removing the code above.Best regards,
MikeOctober 17, 2019 at 9:18 am #1148832hi there mike,
very sorry for the late reply, i had the flu. Ok i tried to drop the code in odds on i dropped it in the wrong place and ended up with the line of code visible in the home page.If there is a way of doing it great. I just backed up my files and database before fiddling, so i just deleted them and re dragged the working ones back across.
Im not that familiar with the functions code. is there a way of attaching it to this message.
in fact doh, ive copied my current functions in the private content below.how do i drop it in in please,i know html but ccs, java etc go over my head a bit.
cheers enOctober 17, 2019 at 9:19 am #1148834sorry forgot to add the home page and all galleries are either full width sliders or easy sliders not masonry galleries, ramdonkising the masonary galleries would be cool as well.
October 18, 2019 at 12:33 pm #1149241would this be the correct way to drop the code in please
<?php
/*
add_filter(‘avia_masonry_entries_query’,’avia_order_by_random’, 10, 2);
function avia_order_by_random($query, $params)
{
$query[‘orderby’] = ‘title’;
$query[‘order’] = ‘rand’;$terms = explode(‘,’, $params[‘categories’]);
if (!empty($terms) && in_array(1, $terms))
{
$query[‘orderby’] = ‘date’;
}
return $query;
}*/im not so good at this kind of thing cheers en
October 18, 2019 at 6:31 pm #1149381Hi,
Sorry for the late reply, please don’t include the code between the/*
and*/
this makes it inactive.
Your child theme functions.php should look like this:<?php /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */ add_filter('avia_masonry_entries_query','avia_order_by_random', 10, 2); function avia_order_by_random($query, $params) { $query['orderby'] = 'title'; $query['order'] = 'rand'; $terms = explode(',', $params['categories']); if (!empty($terms) && in_array(1, $terms)) { $query['orderby'] = 'date'; } return $query; }
this part is only a comment and is not needed:
/* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */
Best regards,
MikeOctober 25, 2019 at 12:30 pm #1151181That does not work im afraid, ive left the code in, and will roll back the site to a previous saved version, after the weekend.
regards ian
October 27, 2019 at 6:35 pm #1151588 -
AuthorPosts
- You must be logged in to reply to this topic.