Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter gquick128

    (@gquick128)

    Sory but this site is not online yet … underconstruction in backoffice.

    but you could reproduce my trouble with any demo site using optimizer theme.

    • This reply was modified 8 years, 3 months ago by gquick128.

    Suggestion for helping translation,
    in includes/helper-functions.php : Line 138
    Modify

    function lsow_entry_published($format = "M d, Y") {
     $published = '<span class="published"><abbr title="' . sprintf(get_the_time(esc_html__('l, F, Y, g:i a', 'livemesh-so-widgets'))) . '">' . sprintf(get_the_time($format)) . '</abbr></span>';
     return $published;

    By

    function lsow_entry_published($format = "M d, Y") {
     $published = '<span class="published"><abbr title="' . sprintf(get_the_time(esc_html__('l, F, Y, g:i a', 'livemesh-so-widgets'))) . '">' . sprintf(get_the_date()) . '</abbr></span>';
     return $published;

    and suppress $link= (…) return $link; that’s not active code

    get_the_date() use the default local date format
    or if you prefer a more cutimized code put the format inside translation domain : sprintf(get_the_time(esc_html__(‘M d, Y’, ‘livemesh-so-widgets’)))

    For information,
    I also began to translate into French with PoEdit.
    I get a good translation with livemesh-so-widgets-fr_FR.mo
    in plugin language repository but not with the classical fr_FR.mo

    Thread Starter gquick128

    (@gquick128)

    Hello,
    After a few hours of work, i got the result I wanted.

    I put this addon at the end of <plugin folder>/includes/widgets/lsow-portfolio-widget/js/portfolio.js :

    // Addon for allow external link custom filtering
    	// Add externals links in div with class lsow-portfolio-custom-filter
    	// the link form must be href="#lsow-portfolio-custom-filter-x" , x=0,1,2,3,...
    	// and select the corresponding segment number
    	$('.lsow-portfolio-custom-filter').each(function () {
    		// Find the lsow-portfolio in globale document
    		var pf_container = $(document).find('.lsow-portfolio');
    		if (pf_container.length === 0) {
    			return;
    		}
    		var pf_header = pf_container.closest('.lsow-portfolio-wrap').find('.lsow-portfolio-header .lsow-taxonomy-filter');
    
    		$(this).find('a').on('click', function (e) {
    			e.preventDefault();
                var segment = $(this).attr('href').replace("#lsow-portfolio-custom-filter-",".segment-");
                var new_active = pf_header.find(segment);
    			var selector = new_active.find('a').attr('data-value');
                pf_container.isotope({ filter: selector });
    			pf_header.children().removeClass('lsow-active');
    			new_active.addClass('lsow-active');
                return false;
    		});
    	});

    and now i can add links in any div class “lsow-portfolio-custom-filter”
    with de href=”#lsow-portfolio-custom-filter-N” N=0,1,2,3,…
    it work perfect with SiteOrigine Image Grid :
    – put “lsow-portfolio-custom-filter” in Attribut Class widget
    – put #lsow-portfolio-custom-filter-1, lsow-portfolio-custom-filter-2 etc in each url image.
    that’s make a great image grid filter for portfolio.
    same config with Livemesh Button … and another way to filter portfolio.

    Thank’s for your help.
    Perhaps this add on could be include in your next release ?

    Thread Starter gquick128

    (@gquick128)

    OK Thank’s i have not undersand that this configuration is for all the pages and not only for the home page due to my mixed of hide and not hide header.

    It’s work well

    Thread Starter gquick128

    (@gquick128)

    thank’s for your reply, i will try it.

    Thread Starter gquick128

    (@gquick128)

    Hi Kadence Team, is it a bug ?

    thank’s Kevin for the workaroud.

    Thread Starter gquick128

    (@gquick128)

    yes it work for me.
    with and without title show

Viewing 8 replies - 1 through 8 (of 8 total)