Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Issues editing protfolio templates
New Landing › How can we help? › Themeforest Theme Support › Dante › Issues editing protfolio templates
- This topic has 7 replies, 4 voices, and was last updated 9 years by
Rui Guerreiro – SUPPORT.
-
Posted in: Dante
-
February 13, 2015 at 12:31 am #149681
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.February 13, 2015 at 7:05 am #149703Hi,
Please attach some marked screenshot to explain your issue better.
Thanks
MohammadFebruary 13, 2015 at 5:16 pm #150004Sure. 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.February 16, 2015 at 6:07 am #150334Hi,
Which files you edited?
Let us know,
Thanks,
laranz.February 19, 2015 at 11:28 pm #151800I took this file:
\wp-content\themes\dante\includes\sf-portfolio.phpand then I copied it to the child theme folder here:
\wp-content\themes\dante-child\includes\sf-portfolio.phpI’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.
February 20, 2015 at 6:56 am #151856Hi,
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
MohammadFebruary 20, 2015 at 5:42 pm #152038Thank 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?
February 20, 2015 at 11:41 pm #152104Yes 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 themethis is just an example of where you start beginning to copy
if (!function_exists('sf_portfolio_items')) { function sf_portfolio_items(
-Rui
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.