-
AuthorPosts
-
February 7, 2024 at 11:20 pm #1433595
hi,
my site is https://XXX (see private data)on the home page there is photo wall, with highlights pictures to all the portfolio albums
now i want to sort this photowall in a specific order. the wall gives some sorting options, however whatever i try i do not get the specific order i want.
i tried with the dates but it does not succeed.. i do not want to change the slug as that affects the URL.
basically i only want to give every portfolio item a number like 1,2,3 etc. and that photo are shown in the order 1,2,3 from left to right or top to down.What is the way to force the photo’s to be shown in the order i want?
- This topic was modified 9 months, 3 weeks ago by StarSolutions.
February 8, 2024 at 10:38 am #1433644Hey StarSolutions,
Thank you for the inquiry.
You can manually adjust the order of the portfolio items by setting the Content > Sorting > Order by settings to Page Order and specifying the value of the Order attribute for each portfolio item.
// https://wordpress.com/support/pages/page-attributes/
To enable the Order field for the portfolio items, make sure to add this code to the functions.php file.
/* Change portfolio post type settings */ function avf_portfolio_cpt_args_mod($args) { $args['supports'][] = 'page-attributes'; return $args; } add_filter('avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod');
Best regards,
IsmaelFebruary 8, 2024 at 10:17 pm #1433742Thnx, this does the trick. It is OK now!
Off topic, but how can i turn off the overlay on the sorted images which shows at mouse-over the image title?
In the advanced style editor i see one field called Overlay of linked image, but this does not have any effect.
grtz. CornelisFebruary 9, 2024 at 10:46 am #1433786Hi,
Thank you for the update.
but how can i turn off the overlay on the sorted images which shows at mouse-over the image title?
Are you asking about the caption overlay? You can disable it by adjusting the settings under Content > Captions > Element Title and Excerpt. Set it to the last option (Display Neither).”
Best regards,
IsmaelFebruary 9, 2024 at 1:10 pm #1433810Hi Ismael,
no i do not mean the caption title, that one is wanted.i mean the textbox that is emerging on every image on the website, when you do mouse-over.
it shows the file name of the image, but for our purpose showing the file name in a text box is bit distracting.
I added a screenshot with an example, where it shows “liefde_vriendschap(6)”- This reply was modified 9 months, 3 weeks ago by StarSolutions.
February 10, 2024 at 9:33 pm #1433948Hi,
Your screenshot show the “title: attribute, this is shown by the browser and is not a theme feature, to remove this try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function temporary_removal_title_tags(){ ?> <script> window.onload = function() { var links = document.querySelectorAll('a , img'); for (var i = 0; i < links.length; i++) { var link = links[i]; link.onmouseover = function() { this.setAttribute("org_title", this.title); this.title = ""; }; link.onmouseout = function() { this.title = this.getAttribute("org_title"); }; link.onclick = function() { this.title = this.getAttribute("org_title"); }; } }; </script> <?php } add_action('wp_footer', 'temporary_removal_title_tags');
Thanks to Guenni007 for this script.
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.Best regards,
MikeFebruary 11, 2024 at 5:33 pm #1434001thanks man!
i think i have had some other theme’s before, who had embedded this function as well.
February 11, 2024 at 7:27 pm #1434017Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Hi, i need some help for the sorting function’ is closed to new replies.