New Landing How can we help? Themeforest Theme Support Dante Portfolio Lightbox Custom Content

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Dante
  • #69222
    akalra
    Member
    Post count: 15

    Hi guys —

    Love the theme, using it to set up a client WP site right now. WP3.9, Dante 2.53.

    They’ve asked me to customize the theme (I’m a developer) to provide a piece of functionality that the theme doesn’t support, and I’m wondering what the recommended way is to interface with your code. I’ve read through the theme code and your developer docs, and I think I mostly understand what’s going on.

    The requirement is to provide an additional “Thumbnail Link Type” for Portfolio items, to allow it to link to a light-box with custom content (beyond just the image).

    From what I can tell, I need to extend the functionality in the following files:
    – swift-framework/meta-boxes.php — under “THUMBNAIL LINK TYPE”, register a new type of link
    – includes/sf-portfolio.php — under the section “LINK TYPE CONFIG”, look for my new type of link and build an appropriate $link_config that triggers a new type of lightbox
    – includes/sf-portfolio.php — somewhere in the main while loop, render out a hidden DIV lightbox to be able to be triggered by the $link_config above
    – There’s some files in swift-framework/page-builder/builder/shortcodes/* that seem relevant, but I think I can safely ignore them if I don’t care about updating the Page Builder WYSIWYG editor in the admin screen?
    – There’s also some relevant looking code in js/sf-admin.js, but not sure I understand what it’s doing? Is this just for the admin screen?

    Questions:
    – Do I have this mostly right? Am I misunderstanding or missing any pieces? Is there a better way to do this?
    – Ideally, I’d extend your functionality, not override it, so that future theme updates don’t break. There don’t appear to be any real hooks though, so I think I’d have to define the same functions myself in the child them, copy your code, and make my tweaks. Or am I missing something?
    – It looks like your lightbox support comes from View.js, which doesn’t support HTML content. I can integrate another lightbox plugin/library, are there any ones that you recommend as working well with the theme, being responsive, etc?

    Thanks!

    Ankur

    #69225
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi, I’m sorry we cannot help with that in-depth customization of the theme.

    Cheers

    #69226
    akalra
    Member
    Post count: 15

    I’m not asking you to customize the theme, I’m doing the customization.

    I’m just asking what your best practices are so that future theme updates don’t break my customization.

    Thank you,

    Ankur

    #69339
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    All we can suggest is make note of your changes, and then when you update the theme, make the changes again (those files are not possible to overwrite in the child theme)

    The other options is rather than updating the theme when a new update is released, go through the changelog and manually update it yourself.

    – Kyle

    #69474
    akalra
    Member
    Post count: 15

    Okay, thank you for your help.

    In general, the functionality I’ve added seems like a useful feature. Along with “Link to post”, this would basically be “Link to post in lightbox”.

    I’ve already implemented it in the theme, how can I submit it to you guys as a patch to consider including in the next version of the theme? If it saves other people time from having to build it themselves, not sure how that’s a bad thing.

    Thanks!

    Ankur

    #69552
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Feel free to upload it as a .zip file and I’ll pass it on to the developer

    – Kyle

Viewing 6 posts - 1 through 6 (of 6 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