My question is…when using this feature on say masonry….and set for example to show a few tags for sorting purposes…is there a way to add a title? Like for example say you wanted to add a title that says….
Sort by location here:
Thanks!
Hey lobstahhhhhhh!
Thank you for using our theme.
This is currently only possible by modifing the core files, e.g.
enfold\config-templatebuilder\avia-shortcodes\masonry_entries.php
If you go to line 535ff:
$output .= "<div id='av-masonry-".self::$element."' class='av-masonry noHover av-{$size}-size av-{$this->atts['gap']}-gap av-hover-overlay-{$this->atts['overlay_fx']} av-masonry-col-{$this->atts['columns']} av-caption-{$this->atts['caption_display']} {$this->atts['container_class']}' >";
After this you can insert your headline, e.g.:
<h3>Sort by location here: </h3>
Best regards,
Günter
Ok gotcha! thanks! I understand completely, and would this same type of approach be possible on particular pages vs the core file for all masonry output with sort? So could we edit a certain page with the masonry output using a respective similar code?
Hi!
You can use conditional functions: https://codex.wordpress.org/Function_Reference/is_page
if(is_page('PAGE 1')) {
<h3>Sort by location here: </h3>
} else {
<h3>Sort by category here: </h3>
}
Regards,
Ismael