New Landing How can we help? Themeforest Theme Support Dante Issues editing protfolio templates

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #149681
    redping
    Member
    Post count: 11

    We are using the portfolio that comes with Dante for the suggested reading section of our site: http://launchbox.tv/learn/suggested-reading/

    We would like to change the link under each image in that comiled view so that it goes to the url that we put in (External Link field) instead of the individual page.

    My Problem:
    I’ve created and edited wordpress templates before. I copied the dante template to the child folder edited and uploaded, but the nothing changes on the actual pages. I recall at one point seeing that developers need to edit templates differently with Dante, but I don’t recall seeing that anywhere. Please point me to where/how I edit these.

    #149703
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please attach some marked screenshot to explain your issue better.
    Thanks
    Mohammad

    #150004
    redping
    Member
    Post count: 11

    Sure. What I’d like is for the link on the individual page (link 1)
    to be the url that is linked on the portfolio page, replacing the link to the individual portfolio pages.

    But even if I could just get it added I could figure it out. Right now, I’m having issues editing the templates. I would be thrilled to be able to see any change at all, even an added class on that link that I point to in the image. When I upload the template that I have made no changes to, I see no changes reflected online.

    Attachments:
    You must be logged in to view attached files.
    #150334
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Which files you edited?

    Let us know,

    Thanks,
    laranz.

    #151800
    redping
    Member
    Post count: 11

    I took this file:
    \wp-content\themes\dante\includes\sf-portfolio.php

    and then I copied it to the child theme folder here:
    \wp-content\themes\dante-child\includes\sf-portfolio.php

    I’ve made changes and uploaded the file via ftp. I have made all sorts of changes to this page and nothing changes on the live site. I’ve written functions, added classes, deleted whole sections. Nothing changes on the live site, even after I clear my cache.

    I get the feeling that there is a special way that I am supposed to edit these template pages using your theme that I am unaware of. If you could point me in the direction of that or documentation, I’m sure I could figure it out, but the way I’ve been doing it for other wordpress sites is not working.

    To answer your question, what I’m trying to do here it is (although this is not really what I’m looking for help on)
    There is a variable on this page:
    \wp-content\themes\dante\single-portfolio.php

    <?php if ($item_link) { ?>
    							<a class="item-link" href="<?php echo $item_link; ?>" target="_blank"><i class="ss-link"></i><?php _e("View Project", "swiftframework"); ?></a>
    

    That I would like to use in sf-portfolio.php to change the link that I mentioned above.

    #151856
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit sf-portfolio.php file.

    Find this code:-
    $permalink = get_permalink();
    
    Change with:-
    $item_link = sf_get_post_meta($post->ID, 'sf_portfolio_external_link', true);
    

    Thanks
    Mohammad

    #152038
    redping
    Member
    Post count: 11

    Thank you for your response. It is now working. I have still one more question though. I found that I need to edit the php file in worpress and that the sf-portfolio.php file in my child theme would not over ride the parent one. I’m worried that when I update to the next version of my theme that my changes will be saved over. Is this correct?

    #152104
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Yes it will be replaced if left in the parent theme.
    Has an alternative you can copy the entire function and paste it inside the functions.php of your child theme

    this is just an example of where you start beginning to copy

    if (!function_exists('sf_portfolio_items')) { 
    	function sf_portfolio_items(

    -Rui

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register