-
AuthorPosts
-
November 25, 2019 at 6:09 am #1159759
Hi,
Can i please get your help in adding a link from a special heading or grid section that takes you to a section on the same page.
I think using this?…Custom ID Attribute
Apply a custom id attribute to this element. Useful to apply individual styling via CSS or if you want to use anchor links to scroll to the element when a link is clicked. Use with caution, be sure to have a unique value on the page and also make sure to only use allowed characters (latin characters, underscores, dashes and numbers, no special characters can be used).Thank you,
AliceNovember 25, 2019 at 5:09 pm #1159921Hey adxdigitalmarketing,
Yes, it is correct. You assign an id and then use it in the link.
Here are the docs for you:Best regards,
VictoriaNovember 28, 2019 at 6:10 am #1160868Figured it out. Thank you!
November 28, 2019 at 4:37 pm #1161036Hi adxdigitalmarketing,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
VictoriaJanuary 17, 2020 at 3:48 am #1175232Hi, this is an unrelated question but i cant see where to start a new topic!
Can you please give me the code to stop the portfolio grid from showing the portfolio entry the page is currently on… its explained in this thread:
“Remove Current Portfolio Post from related portfolio grid Enfold”I tried adding the code listed in the thread (the two listed below) but it isn’t working for me.
/*filter portfolio sorting */
add_filter(‘avia_post_grid_query’, ‘avf_custom_post_grid_query’);function avf_custom_post_grid_query ( $query ) {
if(is_singular(‘portfolio’)) {
$query[‘offset’] = 1;
}
return $query;
}function ava_exclude_portfolio($query) {
$query->set( ‘offset’, ‘1’ );
}add_action(‘pre_get_posts’, ‘ava_exclude_portfolio’);
Can you please login and place it in the functions.php for me? please don’t take the site off maintenance mode.
Thanks
AliceJanuary 17, 2020 at 7:39 pm #1175597Hi adxdigitalmarketing,
Can you please share the login link too?
Best regards,
VictoriaJanuary 20, 2020 at 2:39 am #1176169Sorry, here you go
January 20, 2020 at 8:28 pm #1176411Hi adxdigitalmarketing,
Credentials did not work for me. Could you please update the credentials?
Best regards,
VictoriaJanuary 21, 2020 at 12:06 am #1176517Hi Victoria,
Please try these.
Thanks
January 22, 2020 at 9:21 am #1177037Hi,
Thank you for the update.
This one should work. It will exclude the current portfolio item from the portfolio grid element.
add_filter('avia_post_grid_query','avf_post_grid_query_mod', 10, 2); function avf_post_grid_query_mod($query, $params) { if(is_singular('portfolio')) { $query['post__not_in'] = array(avia_get_the_ID()); } return $query; }
Best regards,
IsmaelJanuary 23, 2020 at 12:03 am #1177357It worked! Thank you very much!
January 23, 2020 at 7:32 am #1177399Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Anchor link’ is closed to new replies.