Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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?

    #1433644

    Hey 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,
    Ismael

    #1433742

    Thnx, 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. Cornelis

    #1433786

    Hi,

    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,
    Ismael

    #1433810

    Hi 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)”

    #1433948

    Hi,
    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,
    Mike

    #1434001

    thanks man!

    i think i have had some other theme’s before, who had embedded this function as well.

    #1434017

    Hi,
    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Hi, i need some help for the sorting function’ is closed to new replies.