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

    #1159921

    Hey adxdigitalmarketing,

    Yes, it is correct. You assign an id and then use it in the link.
    Here are the docs for you:

    Best regards,
    Victoria

    #1160868

    Figured it out. Thank you!

    #1161036

    Hi adxdigitalmarketing,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1175232

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

    #1175597

    Hi adxdigitalmarketing,

    Can you please share the login link too?

    Best regards,
    Victoria

    #1176169

    Sorry, here you go

    #1176411

    Hi adxdigitalmarketing,

    Credentials did not work for me. Could you please update the credentials?

    Best regards,
    Victoria

    #1176517

    Hi Victoria,

    Please try these.

    Thanks

    #1177037

    Hi,

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

    #1177357

    It worked! Thank you very much!

    #1177399

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Anchor link’ is closed to new replies.