NooTheme Premium WordPress Theme › Forums › JobMonster › Concern pagination Widget Company list grid
- This topic has 3 replies, 2 voices, and was last updated 1 month ago by Jackie.
-
AuthorPosts
-
1 month ago #1221371
Hello,
A small problem with the Company List Widget in grid mode
I changed the structure of my site urls to not have the / at the end and suddenly the / is missing for navigation
the widget generates this url for me: https://www.xxx.com/entreprises-qui-recrutent-velopage/2?key=C
while it should be
https://www.emploivelo.com/entreprises-qui-recrutent-velo/page/2?key=C
I went to see the file/wp-content/plugins/jobmonster-addon/includes/elementor-template/noo-company/grid.php but I didn't find it in it
Where can I fix this problem?
Thanks
1 month ago #1221374Hi.
I'm not sure how to change the structure of the site to remove the / at the end of the URL, but you can check the pagination function in this file:
/wp-content/themes/noo-jobmonster/framework/functions/noo-html-pagination.php
Maybe that can help you.
Regards.
1 month ago #1221377thanks, i'll add tvis code in function l.47
[code]
<span> if ( $wp_rewrite->using_permalinks() && ! is_search() ) {</span>
<span> $url = $_SERVER['REQUEST_URI'];</span>
<span> $search_chaine = strpos($url, 'entreprises-qui-recrutent-velo');</span>
<span> if ($search_chaine){</span>
<span> $defaults[ 'base' ] = user_trailingslashit( trailingslashit( get_pagenum_link() ) . '/page/%#%' );</span>
<span> </span>
<span> }</span>
<span> else {</span>
<span> $defaults[ 'base' ] = user_trailingslashit( trailingslashit( get_pagenum_link() ) . 'page/%#%' );</span>
<span> }</span>
<span> }</span>
[/code]
thank
1 month ago #1221379Yes, if you need help, please let us know again.
Regards.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.