Before you ask please READ THIS

missing navigation icons for single albums

Hello!

1. either "next" or "previous" icon are missing in some single album.
It seems happening randomly in different album and different language.
(but some works perfectly have both next/previous icon)
I disable "Navigate by categories" as I want it back to "ALL" category but not the corresponding category.

2. one of the album is used for the homepage (I enable "Exclude from the Albums list page"),
but there is the "next" icon on the last album on the album list, it will go to the album (homepage) when click. How to disable the "next" icon on that album?

here is the link of the album which should be the last one in the album list:
http://www.vpang.com/zh-hant/album/高級日本餐廳/


Thanks a lot!
Screen Shot 2019-08-13 at 6.21.59 PM.jpg
3006 x 1510 - 301K

Comments

  • AirAir
    Posts: 10,814
    Hey:-)
    quinl said: 1. either "next" or "previous" icon are missing in some single album.
    It seems happening randomly in different album and different language.
    (but some works perfectly have both next/previous icon)
    I disable "Navigate by categories" as I want it back to "ALL" category but not the corresponding category.
    This is typical behavior for option Navigate by categories, but you are saying that you have disabled it, so it sounds strange.

    I have found that is happening here http://www.vpang.com/zh-hant/album/m展亭/ but it is fine as it is the first album on the list.
    It also happens here http://www.vpang.com/zh-hant/album/高級日本餐廳/ and this one I don't know why.

    Do you know of any other albums?
    Have you used any plugin for rearranging albums order?
    quinl said: 2. one of the album is used for the homepage (I enable "Exclude from the Albums list page"),
    but there is the "next" icon on the last album on the album list, it will go to the album (homepage) when click. How to disable the "next" icon on that album?
    This option only excludes album from listing on Albums lists, but not in next/prev navigation.
    To make an album also excluded from this navigation would be pretty tricky.

    With kind regards.
  • Posts: 16
    Hi Air
    This is typical behavior for option Navigate by categories, but you are saying that you have disabled it, so it sounds strange.
    ...I know...... but my boss insists.... because he wants to show all the projects when back to the album list
    Do you know of any other albums?
    Yes, many. I found that all are happening in the category of "INTERIORS"
    English version:
    http://www.vpang.com/album/my-harbour/
    http://www.vpang.com/album/my-day/
    http://www.vpang.com/album/my-wedding/
    http://www.vpang.com/album/lumiere-cinema-complex/
    http://www.vpang.com/album/on-hing-terrace/
    http://www.vpang.com/album/robe-di-kappa-flagship-store/
    http://www.vpang.com/album/brioni-at-landmark/
    http://www.vpang.com/album/greater-china-culture-global-association-centre/
    http://www.vpang.com/album/tiley-real-estate-headquarter/

    Traditional Chinese version:
    http://www.vpang.com/zh-hant/album/my-wedding婚紗專門店/
    http://www.vpang.com/zh-hant/album/太古匯盧米埃影城/
    http://www.vpang.com/zh-hant/album/新光戲院/
    http://www.vpang.com/zh-hant/album/置地廣場義大利高級時裝店brioni/
    http://www.vpang.com/zh-hant/album/大中華文化全球協會/
    http://www.vpang.com/zh-hant/album/天利地產辦公總部及會所/
    http://www.vpang.com/zh-hant/album/高級日本餐廳/

    Simplified Chinese version:
    http://www.vpang.com/zh-hans/album/啟德遊輪碼頭餐廳設計/
    http://www.vpang.com/zh-hans/album/my-day/
    http://www.vpang.com/zh-hans/album/my-wedding婚纱专门店/
    http://www.vpang.com/zh-hans/album/太古汇卢米埃影城/
    http://www.vpang.com/zh-hans/album/安庆大厦/
    http://www.vpang.com/zh-hans/album/时尚休闲便服robe-di-kappa连锁时装店/
    http://www.vpang.com/zh-hans/album/置地广场意大利高级时装店brioni/

    Have you used any plugin for rearranging albums order?
    Yes, Category Order and Taxonomy Terms Order
    https://wordpress.org/plugins/taxonomy-terms-order/

    Any other way to create the homepage? Can create the slider with elementor instead of using album?
    http://www.vpang.com/


    Many thanks!!
  • AirAir
    Posts: 10,814
    Hey:-)
    quinl said: Yes, Category Order and Taxonomy Terms Order
    https://wordpress.org/plugins/taxonomy-terms-order/
    Could you dsiable it and check if issue will sill happen?
    quinl said: Any other way to create the homepage? Can create the slider with elementor instead of using album?
    Yes, you could use one of the widgets of Elementor to make it, if you really need to remove this album from the navigation. However, it will probably look different than now.

    Let's first slove issue with the navigation, and later I will try to help you with code change to exclude this album from the navigation.

    With kind regards.
  • Posts: 16
    Hi Air
    Could you dsiable it and check if issue will sill happen?
    I've tried, the issue still happens.

    I found that it works normally if I enable "Navigate by categories".
    is it a hint?


    Thanks for your help.
  • AirAir
    Posts: 10,814

    Could you please send me temporary* access to your WordPress so I could check there what is going on? Send it here on the forum via private message(click on my nick, in top-right corner you will find option "Message"). In message please add LINK to topic it applies to.

    By sending access to WordPress I mean:
    -create a new ADMIN account with a fake e-mail
    -set some password to this account
    -send me created login and password

    *temporary - please delete this account after I am done, for your safety!
  • AirAir
    Posts: 10,814
    Hey :-)
    I have logged into your installation and tried various things.

    I have found out that if I disable "Post Types Order" plugin, then it works well.
    On all albums, there are both arrows then.

    I am not sure if this is a conflict between this plugin and WPML, or just something to fully set.
    However, if you decide to disable this plugin then you can change order or albums by changing in each album the publish date.
    quinl said: I found that it works normally if I enable "Navigate by categories".
    is it a hint?
    I have tried this trial but couldn't find the reason why it is better.

    With kind regards.
  • Posts: 16
    Hi Air

    Thank you!
    I have found out that if I disable "Post Types Order" plugin, then it works well.
    On all albums, there are both arrows then.
    but if disable the plugin, is there any way to customize the category order?
    http://www.vpang.com/projects/
    We want : Architecture > Planning > Interiors
    instead of Architecture > Interiors > Planning

    Thanks a lot!
  • Posts: 16
    Hi Air
    but if disable the plugin, is there any way to customize the category order?
    I solved it with another plugin, it works well.
    Let's first slove issue with the navigation, and later I will try to help you with code change to exclude this album from the navigation.
    could you please tell me how to do?


    I have another problem with the "To top button" icon. It cannot be shown.
    (I have updated the icon library in elementor, and then found this issue)
    please see attached.

    Many thanks!!
    Screen Shot 2019-08-17 at 10.57.50 PM copy.jpg
    2594 x 1604 - 348K
    Screen Shot 2019-08-17 at 11.01.05 PM copy.jpg
    1134 x 1478 - 85K
  • AirAir
    Posts: 10,814
    Hey there!
    quinl said: I have another problem with the "To top button" icon. It cannot be shown.
    (I have updated the icon library in elementor, and then found this issue)
    please see attached.
    I have fixed this in your installation
    quinl said:
    Let's first slove issue with the navigation, and later I will try to help you with code change to exclude this album from the navigation.
    could you please tell me how to do?
    So you will have to create new category specially for this album. Probably best would be to create such a category in each language.

    Next, we need IDs of those categories, so we could exclude them from the navigation.
    IDs you will get while editing category. Please see below screenshot:

    image

    Next, we need to edit theme code a bit. Go to advance\utilities\cpt-album.php line ~85 and change this code:
    	    else{
    		    next_post_link( '%link', '<span class="fa fa-long-arrow-'.( is_rtl() ? 'right' : 'left' ).'" title="%title - %date"></span>' );
    	    }
    to:
    	    else{
    		    next_post_link( '%link', '<span class="fa fa-long-arrow-'.( is_rtl() ? 'right' : 'left' ).'" title="%title - %date"></span>', false, array(136,137,138) );
    	    }
    Same we will do in line ~94. Change this:
    	    else{
    		    previous_post_link( '%link', '<span class="fa fa-long-arrow-'.( is_rtl() ? 'left' : 'right' ).'" title="%title - %date"></span>' );
    	    }
    to
    	    else{
    		    previous_post_link( '%link', '<span class="fa fa-long-arrow-'.( is_rtl() ? 'left' : 'right' ).'" title="%title - %date"></span>', false, array(136,137,138) );
    	    }
    .

    Those numbers 136,137,138 are IDs of your categories that you will create, so you will have to edit those to your values.

    Good luck with this change.

    Once you get this working you can move this change to the child theme.

    With kind regards.
    category.png
    998 x 390 - 17K
  • Posts: 16
    Hi Air

    Thank you so much!!!

    editing the code is quite difficult for me, I've tried once but failed....will try again.
  • AirAir
    Posts: 10,814
    If you will have problems I can try to do it for you once you give me categories IDs.

    With kind regards.
  • Posts: 16
    Great!!!

    The IDs are 65, 66, 67

    A thousand thanks!!!
  • AirAir
    Posts: 10,814
    Done :-)

    Now assign your home albums in each language to the proper category. I have done it already for English.

    With kind regards.
  • Posts: 16
    Thank you, Air

    It works perfectly now.

    Grateful for your help!!

  • Posts: 16
    Hi Air

    I got another issue:
    So you will have to create new category specially for this album. Probably best would be to create such a category in each language.
    this new category should not show up, how to remove from the filter on the album list?

    Thank you!
    Screenshot 2019-08-27 at 2.40.11 AM copy.jpg
    2460 x 1608 - 233K
  • AirAir
    Posts: 10,814
    Hello :-)

    I think that the best way would be to hide it with custom CSS in this situation.
    Try such custom CSS:
    .category-filter li[data-filter="65"],
    .category-filter li[data-filter="66"],
    .category-filter li[data-filter="67"] {
        display: none;
    }
    With kind regards.
  • Posts: 16
    Perfect!!! quick and accurate.

    Thank you sooo much!!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion