This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Change gallery link on main gallery page

  • Creator
    Topic
  • #16869
    atlantisrailjohn
    Participant

    Is it possible to change the image and button links on the main gallery page?
    I’d like to hardcode the links on the following page to go to a different gallery the the currently linked galleries:
    http://newenglandwings.com/photo-gallery/

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #16870
    atlantisrailjohn
    Participant

    Actually, I got it by changing Featured Image link in the post, but… the View Gallery button still goes to the work page, how do I override the button link also?

    #16883
    Jason Bobich
    Keymaster

    Hello,

    Unfortunately there’s no feature to change where the “Read More” and post title link to. These are always going to link to the single post page of the current post.

    If you’d like to customize how these posts are displayed, the HTML markup, where they link, etc, you’d need to customize content-grid.php from your child theme.

    #16898
    atlantisrailjohn
    Participant

    any idea what I need to change in that file. Could I just comment out the following code and manually add the links:

    ?php if( ‘show’ == themeblvd_get_option( ‘post_grid_button’, null, ‘show’ ) ) : ?>

    #16901
    Jason Bobich
    Keymaster

    This will be a customization you’ll need to make. In the read-more-link div, this is the part that’s determining what the button is linking to:

    get_permalink( get_the_ID() )

    The second parameter passed into themeblvd_button() is what the button would link to. So, you’d have to come up with some way to manually set this URL. Maybe you could pull from a custom field or something.

    http://code.tutsplus.com/articles/quick-tip-a-4-minute-crash-course-in-wordpress-custom-fields–net-11464

    http://codex.wordpress.org/Custom_Fields#Usage

    http://codex.wordpress.org/Custom_Fields#Getting_Custom_Fields

Viewing 4 replies - 1 through 4 (of 4 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.