Forum Replies Created

Viewing 30 posts - 2,341 through 2,370 (of 9,352 total)
  • Author
    Posts
  • in reply to: Next and Previous Post Navigation is in reversed order #305576

    Hi!

    Please try this code:

    
    add_filter('avia_post_nav_entries', 'avia_apply_custom_sort_order_to_post_nav', 10, 2);
    function avia_apply_custom_sort_order_to_post_nav($entries, $settings)
    {
        $temp_prev = $entries['prev'];
        $temp_next = $entries['next'];
        $entries['prev'] = $entries['next'] = "";
        if(!empty($temp_next)) $entries['prev'] = $temp_next;
        if(!empty($temp_prev)) $entries['next'] = $temp_prev;
        return $entries;
    }
    

    It should also work for the first/last post.

    Cheers!
    Peter

    in reply to: Jquery error loading script #305301

    Hey!

    I checked the images and I think some of them are too small for the slider. If the images are too small (= low resolution) the slider can’t display them and will output an error. I used some random images http://thesevencollection.com/beauty/ which are all bigger than 710px x 270px (selected thumbnail size) to test the slider and the slider works now. Please make sure that all images in the accordion slider have at least the size of the selected “Accordion Image Size”.

    Best regards,
    Peter

    in reply to: Process form params instead sending via e-mail #305299

    Hi!

    1) You don’t need to modify the contact form code/class – you can add the code I posted above in the child theme functions.php file, enfold/functions.php or you can create a custom plugin.

    2) The question is what you want to do with the form data. If you just want to process it without sending emails please use this code:

    
    	add_filter('avf_form_send', 'avia_process_form_data', 10, 3);
    	function avia_process_form_data($send, $new_post, $form_params)
    	{
    		foreach ($new_post as $current_key => $current_post)
    		{
    			//loop through all contact form fields. $current_key contains the field name, $current_post the corresponding value.
    		}
    		return false;
    	}
    

    Then insert your custom code (which processes the form data) below the php comment line.

    
    //loop through all contact form fields. $current_key contains the field name, $current_post the corresponding value.
    

    You can i.e. store the submitted data into the database, write it to a text file, etc. Note that I can’t provide this code because it depends on your php application and it’s also beyond the scope of our support forum.

    Cheers!
    Peter

    in reply to: Jquery error loading script #305288

    Hey!

    Please create us an admin account and we’ll look into it.

    Best regards,
    Peter

    in reply to: Using the Gallery #305286

    Hey Gabster!

    No, there’s no direct way to reuse galleries. You can copy/paste the gallery shortcode from one page to another though (if you use the standard editor) or you can activate the debug mode: http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/ if you want to “inject” a gallery shortcode into an advanced template (just paste the shortcode into the code textarea below the editor and save the page.

    Alternatively you can install a gallery plugin like: https://wordpress.org/plugins/nextcellent-gallery-nextgen-legacy/ which enables you to create an unlimited number of galleries and to manage them with ids (like post categories).

    Regards,
    Peter

    in reply to: How to Disable Enfold creating Media Image Sizes ?? #305284

    1) Did you deactivate the plugin before you commented out the code? Otherwise wordpress will use the values stored in the database (= plugin settings)…

    2) This is my last and only warning Ed. I don’t accept your disrespectful behavior towards the support staff and I’ll kick you out of the support forum (= permanent ban) if I get answers like “knowledgable on how to..” or “No Cheers”. I really don’t care if you send a complaint to Kriesi because we (= the support team) have no obligation to provide support to users who are disrespectful.

    in reply to: insert potfolio item inside a page #305279

    Hi!

    You can’t insert a dynamic slug like my_page or my_category because wordpress requires an unique slug for each custom post type which must be static and which helps wordpress to converts the pretty permalink to a post, page, or custom post type. However you can replace the default “portfolio-item” slug with another (unique) slug on the permalink page (Settings > Permalinks). You must not use a slug which is already used for a page or post. If you really want to point a page slug to a portfolio entry you can do this with a redirection: https://wordpress.org/plugins/safe-redirect-manager/

    Cheers!
    Peter

    in reply to: Process form params instead sending via e-mail #305276

    Hi tludwig!

    You can use the $new_post and $this->form_params variable to process the data. If you don’t want to send a mail and just use the variables with your application make sure that the hooked function returns false like:

    
    	add_filter('avf_form_send', 'avia_process_form_data', 10, 3);
    	function avia_process_form_data($send, $new_post, $form_params)
    	{
    		//your code which processes the  $new_post and $form_params data.
    		return false;
    	}
    

    If you want to send a mail after you processed the data use this code instead:

    
    	add_filter('avf_form_send', 'avia_process_form_data', 10, 3);
    	function avia_process_form_data($send, $new_post, $form_params)
    	{
    		//your code which processes the  $new_post and $form_params data.
    		return true;
    	}
    

    The variable $new_post contains the submitted form data – you can query it like:

    
    	add_filter('avf_form_send', 'avia_process_form_data', 10, 3);
    	function avia_process_form_data($send, $new_post, $form_params)
    	{
    		foreach ($new_post as $current_key => $current_post)
    		{
    			//loop through all contact form fields. $current_key contains the field name, $current_post the corresponding value.
    		}
    		return false;
    	}
    

    You can also combine this filter with other wordpress filters or actions…

    Cheers!
    Peter

    in reply to: How to Disable Enfold creating Media Image Sizes ?? #305250

    Hi!

    Try to install this plugin: https://wordpress.org/plugins/simple-image-sizes/ and remove all sizes you don’t want to use from the database. (Settings > Media).

    Regards,
    Peter

    in reply to: Lightbox not working #305239

    Hi!

    I think a cache plugin adds query parameters to the images and this breaks the lightbox feature. Make sure the image urls end with a valid image extension like jpg, png, jpeg, gif, etc. and not like here: http://japancast.net/JC2/product/plush-totoro-backpack/ ( http://japancast.net/JC2/wp-content/uploads/2014/06/Totoro_Plush_Backpack_original-450×450.jpg?55b610 ) with ?55b610. The query parameter is also completely unnecessary because cache busting only makes sense for css/js files which might be affected code changes (theme updates or if you customize them).

    Best regards,
    Peter

    in reply to: h1 tag missing #305235

    Hey!

    Great, I’ll close this thread now.

    Regards,
    Peter

    in reply to: add font Poiret One #305234

    Hey!

    Ok, the fatal error was probably triggered by the quotes. The php quotes symbol must be:

    
    ' or "
    

    and not

    However glad it works now.

    Regards,
    Peter

    in reply to: add font Poiret One #305227

    Hi!

    Tbh I’m not sure. I couldn’t find the code Josue posted in your functions.php file. It was simply missing and thus you couldn’t select the font on the admin page.

    Regards,
    Peter

    Hi Irja!

    Yes sure – insert this code into the child theme functions.php file (or enfold/functions.php):

    
    add_filter('avf_form_autoresponder_from', 'avia_change_autoresponder_from', 10, 3);
    function avia_change_autoresponder_from($from, $new_post, $form_params){
    $from = " (Email address hidden if logged out) ";
    return $from;
    }
    

    and replace (Email address hidden if logged out) with your email address.

    Cheers!
    Peter

    in reply to: Can I deactivate the Avia builder? #305224

    Hi mtmfx!

    No this is not possible. The Avia builder is deeply integrated into the Enfold theme and you can’t deactivate it. We also didn’t test if Live Composer is compatible with Enfold.

    Cheers!
    Peter

    in reply to: Order by excerpt? #305223

    Hey scotthhahn!

    No, afaik this is not possible. However you can try this plugin: https://wordpress.org/plugins/post-types-order/ to manually sort the portfolio entries.

    Cheers!
    Peter

    in reply to: Login/Logout in main menu #305222

    Hey Jorge!

    Please try this plugin: https://wordpress.org/plugins/baw-login-logout-menu/

    Regards,
    Peter

    in reply to: add font Poiret One #305219
    This reply has been marked as private.
    in reply to: How to Disable Enfold creating Media Image Sizes ?? #305218

    Hi Ed!

    You just need to comment out one line in enfold/functions.php. Replace:

    
    avia_backend_add_thumbnail_size($avia_config);
    

    with

    
    //avia_backend_add_thumbnail_size($avia_config);
    

    If you want to generate the thumbnails undo the code modification and regenerate the thumbnails with: https://wordpress.org/plugins/regenerate-thumbnails/

    Cheers!
    Peter

    in reply to: add font Poiret One #305215

    Hey!

    Can you post the website url please?

    Best regards,
    Peter

    in reply to: blog pages won't behave! #305214

    Hey ShortieD!

    If you use an advanced template on the blog page: http://27.131.66.7/~lmecentr/blog/ make sure that the Enfold > Blog Layout > “Blog Style” option is set to “Use the advance layout editor to build your own blog layout (simply edit the page you have chosen in Enfold->Theme Options as a blog page)” – otherwise Enfold will load the default (hardcoded) blog template and will ignore the blog shortcode you added to the layout builder.

    Best regards,
    Peter

    in reply to: Change pencil icon to a custom image file #305213

    Hey wacky32!

    Please elaborate which pencil icon you want to change – maybe post a link to the page where we can see the icon.

    Best regards,
    Peter

    in reply to: insert potfolio item inside a page #305212

    Hey Yory!

    This is not possible. Single portfolio items are like posts and wordpress also doesn’t allow you to insert a single post into a page. You can only add a portfolio grid to a page which then links to the single portfolio entry.

    Cheers!
    Peter

    in reply to: Video Slider Quality #305211

    Hey Viramedia!

    Unfortunately the mediaelements.js player which comes with wordpress and which we use for the slideshow videos does not support the quality parameter by default. However you can try to activate the “Always play my videos in HD, when possible” option like described here: https://vimeo.com/help/faq/sharing-videos/embedding-videos#can-i-make-my-embedded-videos-default-to-hd

    Cheers!
    Peter

    in reply to: Header height changes when changing language #305210

    Hey eurekastudios!

    Enfold creates a separate option set for each language. I noticed you set a different header size here ( http://yogafit.ch/wp-admin/admin.php?page=avia&lang=fr – Enfold (FR) > Header Layout) than for your English website ( http://yogafit.ch/wp-admin/admin.php?page=avia – Enfold (EN) > Header Layout). I now configured the header size for both languages and set it to 150px.

    Regards,
    Peter

    in reply to: Noch immer Probleme mit Tabellen in Tabs #305209

    Hi Christian!

    Da wir verhindern wollen, dass Benutzer Shortcodes “unendlich” stapeln haben wir die meisten Shortcodes bei Tabs/Toggles deaktiviert. Man kann diese trotzdem manuell einfügen, wobei aber nicht sichergestellt ist, dass alle Shortcodes geschachtelt (daher kumulativ verwendet) werden können. Einfach zum Standard-Editor wechseln bzw ein separates Fenster mit dem Standard-Editor öffnen und dort die Tabelle mit Magic Wand > Content Elements > Table generieren, dann einfach den Tabellen Code kopieren und in das jeweilige Tab Fenster einfügen.

    Ihr könnt auch den Table-Shortcode zu dem Tabs-Editor (Magic Wand) hinzufügen. Hierzu öffnet wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/table.php and ersetzt

    
    $this->config['tooltip'] 	= __('Creates a data or pricing table', 'avia_framework' );
    

    durch

    
    $this->config['tooltip'] 	= __('Creates a data or pricing table', 'avia_framework' );
    $this->config['tinyMCE']    = array('tiny_always'=>true);
    

    – anschließend sollte die Tabelle immer als Shortcode Element angezeigt werden.

    Cheers!
    Peter

    in reply to: Enfold Portrait iPad – Menu covers the logo #305204

    Hey!

    Please try this code – it will reduce the padding of the menu items for smaller screens:

    
    @media only screen and (min-width : 768px) and (max-width : 1024px){
    .av-main-nav>li>a {
    padding: 0 8px;
    }
    }
    

    You can insert the css code into the quick css field or child theme style.css file.

    Best regards,
    Peter

    in reply to: image 404 #305199

    Hey!

    I found the culprit. The “RecipePressReloaded” plugin breaks the attachment permalinks. I deactivated the plugin and the attachment urls work now. I also switched to the Twenty Fourteen theme (default wordpress theme) and the urls didn’t work too if the “RecipePressReloaded” plugin is activated – thus it’s definitely a plugin bug or conflict with another plugin.

    Cheers!
    Peter

    in reply to: LayerSlider Thumbnail Navigation – Add links to images #305037

    Hey DCSInc!

    I was also not able to create such a slider with LayerSlider. You can use the “Product Slider” element instead (“Plugin Additions” tab > Product Slider) or use an advanced slider plugin like Master Slider which comes with carousel templates for WooCommerce.

    Cheers!
    Peter

Viewing 30 posts - 2,341 through 2,370 (of 9,352 total)