Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1371978
    Baywalk Mall
    Participant

    Hi,

    Love using this theme and am using it for a mall’s website. I have setup a custom post type for our stores. The thing is, with posts, there’s navigational arrows at the top which allow you to quickly switch between the most recent posts as seen in the attached screenshot (highlighted in yellow).

    I’ve added the following line of code to my functions.php to have posts sorted in alphabetical order on the website, but it doesn’t affect the post navigation.

    add_action('pre_get_posts', 'category_sort_by_title');
    function category_sort_by_title($query) {
      $query->set('orderby', 'title');
      $query->set('order', 'ASC');
    }

    If you click on “Matthew’s Relaxed Bar & Restaurant” at the following link, you will notice it doesn’t allow you to go back because it’s the last store added (by date). However, it falls under “M” and there are several stores after it alphabetically.

    Store Directory

    How can I have this post navigation scroll/switch through posts alphabetically?

    #1372213
    Rupok
    Member

    Hey there,

    Thanks for writing in! Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.

    #1372252
    Baywalk Mall
    Participant

    Got you. As a workaround, in case I am unable to achieve this. Is there a way to hide these navigational arrows or the breadcrumbs entirely?

    #1372512
    Jade
    Moderator

    Hi there,

    You can disable the breadcrumbs in Appearance > Customize > Header > MISCELLANEOUS > Breadcrumbs.

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1371978 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>