Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #486325

    Hi,

    is there an effortless way to open the ajax portfolio at the bottom of portfolio entries?

    Thanks!

    #486621

    Hi Gero!

    Not sure what you mean here. Send us a link to your page and take a screenshot highlighting what your trying to do so we can get a better idea.

    Cheers!
    Elliott

    #486988

    Hi Elliott,

    I’m talking about the Portfolio Grid element and its ajax preview. By default it opens at the top and I’d like to open it at the bottom (preferebly with the slide animation changed as well). Is that possible?

    And while we’re at it: I noticed a small glitch on my site. On my portfolio items pages, I added an hotspot image shortcode to the preview. Everything is working as expected, but if you take a look at the code, there are bunch of </p> elements on data-avia-tooltip. I guess WordPress adds p tags in the process at some point. I already removed every whitespace on the portfolio page and added the following function without success:
    remove_filter (‘the_content’, ‘wpautop’);

    It breaks W3TCs minify so would be cool if there’s a workaround.

    Thanks!

    • This reply was modified 9 years, 4 months ago by Gero.
    #487257

    Hey!

    Unfortunately that is going to take a lot of time and code to implement and would have to be considered custom work. It would be best to hire a freelancer to help you out with this customization.

    I didn’t see the image hotspots in your link though. Can you send us a link to the page where your using them? Make sure to deactivate all plugins while testing.

    Cheers!
    Elliott

    #487264

    Hi,

    that’s too bad. Thanks anyway.

    Hotspots are right there on the link I posted (see screenshot). Take a look at the html code and search for
    data-avia-tooltip=
    All values have p Tags added (can’t post the correct code as it gets converted here, even with code tags)

    #487788

    Hi!

    Oh I see. It looks fine to me though. It’s displaying the same as in the portfolio post single view. How are you trying to change it?

    Cheers!
    Elliott

    #488690

    Problem is in the source code. The data-avia-tooltip= tooltip values have appended <p> which break W3TC minify. I don’t know where they come from, the preview code is cleared of any whitespace.

    #488981

    Hey!

    Well the paragraph is supposed to be there. If you remove it then the styling would look different. You can try changing line 523 in the /enfold/config-templatebuilder/avia-shortcodes/image_hotspots.php file from this.

    $output .= "<div class='av-image-hotspot' data-avia-tooltip-position='{$data_pos}' data-avia-tooltip-alignment='{$align}' data-avia-tooltip-class='{$tooltip_width} {$tooltip_pos} {$extraClass} {$tooltip_style} av-tt-hotspot' data-avia-tooltip='".esc_attr(ShortcodeHelper::avia_apply_autop($content))."' style='{$pos_string}'>";
    

    To this.

    $output .= "<div class='av-image-hotspot' data-avia-tooltip-position='{$data_pos}' data-avia-tooltip-alignment='{$align}' data-avia-tooltip-class='{$tooltip_width} {$tooltip_pos} {$extraClass} {$tooltip_style} av-tt-hotspot' data-avia-tooltip='".esc_attr($content)."' style='{$pos_string}'>";
    

    Best regards,
    Elliott

    #493340

    Hi,

    thanks for your help, you can mark this as resolved.

    Unfortunatly minify still chockes at the HTML inside script tags, but I can live with that. The styling didn’t change though, even with the p Tags removed.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Open ajax portfolio at bottom’ is closed to new replies.