Tagged: ajax portfolio, child theme, enfold, Portfolio
-
AuthorPosts
-
December 22, 2013 at 12:52 am #202945
Hi team,
I’d like to add a button below the ajax portfolio preview content that says something like “Read & See More” and has a dynamic link to the same URL that the title above goes to.
What template file would I edit for this? I am using a Child Theme.
Thanks guys!
KylerDecember 22, 2013 at 2:30 am #202956Hi,
You can edit the preview content here (portfolio item edit page):
Regards,
JosueDecember 22, 2013 at 2:39 am #202957Josue,
Thanks for the reply… but… I was asking about what template file I could edit to change the layout / defaults for that feature.
I don’t want to manually place this button in every item. I want to edit the PHP.
Thanks,
KylerDecember 22, 2013 at 2:41 am #202958Hey!
If you are referring to this button:
Then that would be: /config-templatebuilder/avia-shortcodes/buttons.php
Best regards,
JosueDecember 22, 2013 at 2:43 am #202960Josue,
Let me ask this a different way:
In what Enfold template file is the AJAX portfolio preview markup in? I want to edit that myself in my child theme.
I know how to edit the previews using the Advanced Layout Editor and how to use shortcodes. I am a developer inquiring about where something is located that I need to edit.
Thanks again,
KylerDecember 22, 2013 at 2:46 am #202961Yeah i understand what you want, but i couldn’t locate this “Read & See More” link you are referring to (i guessed it was the ‘View Entry’ button), if you could provide a screenshot or a link to the portfolio where this link appears, that would be helpful.
Regards,
JosueDecember 22, 2013 at 3:57 am #202983I was just giving an example of what I might do with the button. Please disregard the button idea… I might put a line of text there.
What I’m more concerned with is the location of the template for the AJAX portfolio preview.
- This reply was modified 10 years, 11 months ago by GRAPHICpilot.
December 22, 2013 at 4:08 am #202986config-templatebuilder/avia-shortcodes/portfolio.php, around line 551.
Cheers!
JosueDecember 22, 2013 at 4:32 am #202992Thank you Josue!
I have been able to add a dynamic link to the full portfolio item by editing lines 606-608 like this:
$output .= "<span class='avia-arrow'></span>"; $output .= "<p class='read-more-portfolio' $markup><a href='{$link}'>More About This Project</a></p>"; $output .= "</div>";
But I have only been able to get the change to render if I edit the parent theme (Enfold). I can’t get it to render by uploading the config-templatebuilder and avia-shortcodes and portfolio.php into my child theme (hoping they would override the parent).
Can you tell me how I can make these changes to my child theme to leave the core intact?
Here’s a thumbnail of how it looks in my child theme. See the ‘More About This Project’ text.
- This reply was modified 10 years, 11 months ago by GRAPHICpilot.
December 22, 2013 at 8:31 am #203012Hey!
Then you can have your own folder within the child theme for shortcode replacement.
Best regards,
Devin -
AuthorPosts
- The topic ‘Enfold: What template file to edit to modify Ajax Portfolio Preview layout?’ is closed to new replies.