Forum Replies Created
-
AuthorPosts
-
and how did you insert the advanced layerslider. The source code is a bit complicated in comparison to place a advanced layout slider alb element?
if you are on one slide did you center the background images there?
Edit : ah i see you inserted the layerslider via codeblock and shortcode. But this is not necessary on fullwidth mode ( if you want to place it in a 1/2 container – yes you can do that.
if you normaly click on the thumbnails down the ajax portfolio grid – the ajax opens a preview of the portfolio item above – hovering that bigger image shows you an overlay effect and on click that image you receive a lightbox of the featured image.
you can suppress that easily – but to have a different link on that ( imaginable was a link to the portfolio-item itself) will be more complicated.-
This reply was modified 8 years ago by
Guenni007.
not to functions.php of parent theme but to child-theme.
Please my first advice on using WordPress is to go with child-themes.All snippets here on board and documentation of enfold will work with child-theme functions.php.
Get familiar with that: Link you can download on documentation page a predefined child-theme. So it is much easer as it seems to be
did you allready put those snippets into your functions.php of your child theme to set-up the fullsize images in lightbox and not the big one?
this here is for having fullsize for an image link:
function change_lightbox_size() { return "full"; } add_filter('avf_avia_builder_helper_lightbox_size','change_lightbox_size', 10);
and this is for gallery image links :
function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta) { $link = wp_get_attachment_image_src($attachment->ID, "full"); return $link; } add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);
maybe there is one snippet more for masonry image links
but: the fullsize image here on your site is allready in that dimension (sometimes under the dimension of big-preview images)
in functions.php (parent-theme) you can see the image-sizes which enfold is handling:
$avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36); $avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); $avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); $avia_config['imgSize']['featured_large'] = array('width'=>1500, 'height'=>630 ); $avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => false); $avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); $avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); $avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 ); $avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); $avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); $avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 );
so if you want a good resolution for your lightbox images – do the snippets above and upload images with 1500px width
-
This reply was modified 8 years ago by
Guenni007.
June 22, 2017 at 5:53 pm in reply to: Best caching, compression, minify Plugin for WordPress/Enfold? #811719i have the same solution on start BWP Minify and WP Super Cache.
Sometimes BWP Minify got in conflict with advanced Layserslider script.
You can avoid this by excluding handling the script of layerslider by BWP. (Look to Tab : “Manage enqueued files” look on the right side there are a lot of opportunities to test. f.e. “scripts to NOT minify” if you move the layerslider.js into that – the slider will work as expected.do you only want to have no lightbox effect on ajax portfolio big preview.
Or do you like to have instead : if you click one thumb – the ajax preview is shown and on clicking that image – the link to the portfolio item opens!
As the right-click open link does!That would make more sense to me too.
without your site i can not help you. I have to see what you are describing. From your description only i can not understand what was the problem.
June 21, 2017 at 10:13 pm in reply to: Three identical columns, ANY order they go in THE FIRST IS TALLER WHY? #811186hm: http://webers-testseite.de/t-rolls/
edit: ok – then i can delete the page.
-
This reply was modified 8 years ago by
Guenni007.
June 21, 2017 at 9:49 pm in reply to: Three identical columns, ANY order they go in THE FIRST IS TALLER WHY? #811174On the first 1/3 column – open the options for that alb element. did you set on row-settings the equal height option?
because you have done allright with your images – all have the same box size – so it must be that little fault
-
This reply was modified 8 years ago by
Guenni007.
is it on your site or have you a link for us? where we can see this.
Or try this in documentation: http://kriesi.at/documentation/enfold/change-the-sort-order-of-portfolio-elements/
function custom_post_grid_query($query) { $query['orderby'] = 'rand'; return $query; } add_filter('avia_post_grid_query','custom_post_grid_query');
that snippet here: Link gives you the oportunity to set up on alb element the sort option BUT!
read the warning on random option on the bottom:
[alert style=”danger”]Attention – if you use the “Random” sort option do not use it in combination with the “pagination” setting. Otherwise you risk that the user just sees the same posts over and over again because wordpress doesn’t know which posts were used on the other pages.[/alert]
but if you only want to show 1 Item – pagination makes no sense
June 21, 2017 at 2:31 pm in reply to: Portfolio link to another portfolio and open automatically a specific item #810968And by the way if you like to have opend the first portfolio item on opening the ajax portfolio page it is for functions.php child theme:
add_action('wp_footer', 'ava_auto_click'); function ava_auto_click(){ ?> <script> (function($){ $(window).load(function() { $('.grid-links-ajax a:first').trigger('click'); }); })(jQuery); </script> <?php }
-
This reply was modified 8 years ago by
Guenni007.
June 21, 2017 at 12:46 pm in reply to: Portfolio link to another portfolio and open automatically a specific item #810940hm seems to be something with that test-site of mine . On a fresh install the origingal Snippet from Dokumentation works!
https://webers-testseite.de/mino/portfolio/portfolio-ajax/?custom_ajax=46
Solved:
The snippet works well – there was a conflict with one of my self made snippets (date-picker thread)
The snippet from portfolio-ajax deeplink has to be inserted before my own snippet – than it works well.so if it is a google font this might be the best option – and i guess it would be nice to have the other web-font possibilities too: svg, eot, (for some cases ttf) on font squirrell there is a font generator – so if you got f.e. an otf as license you can make there all of these possiblities.
btw for functions.php of your child-theme:
because Average has no other font-weights the code is simple. Then you can use it in enfold options fonts the average font ( at the end of the list)add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Average'] = 'Average'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Average'] = 'Average'; return $fonts; }
June 20, 2017 at 6:50 pm in reply to: Portfolio link to another portfolio and open automatically a specific item #810586edit : read my last entry
-
This reply was modified 8 years ago by
Guenni007.
June 20, 2017 at 6:30 pm in reply to: Portfolio link to another portfolio and open automatically a specific item #810565edit : read my last entry
-
This reply was modified 8 years ago by
Guenni007.
June 20, 2017 at 6:12 pm in reply to: Portfolio link to another portfolio and open automatically a specific item #810551The snippet in Enfold Dokumentation works – but the place where it is inserted must sometimes be corrected (999)
add_action( 'wp_footer', 'enfold_customization_portfolio_linking', 999 ); function enfold_customization_portfolio_linking() { ?> <script type = "text/javascript"> jQuery(document).ready(function(){ var p = getUrlParameter('custom_ajax'); //jQuery('.grid-links-ajax').avia_portfolio_preview(); jQuery('.post-entry-'+p+' .grid-image').click(); }); function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split('&'); for (var i = 0; i < sURLVariables.length; i++) { var sParameterName = sURLVariables[i].split('='); if (sParameterName[0] == sParam) { return sParameterName[1]; } } } </script> <?php }
the link in your menu has now to be :
http://your.site.url/portfolio-page/?custom_ajax=2694
the url now has to be changed to your custom ajax id and url
determin the custom ajax id got to portfolio list view on dashboard – move your mouse over the portfolio you want to open – on browserwindow (firefox left bottom corner – you see now the ID in the link.see here on test page: https://webers-testseite.de/ click on menu link “Portfolio-Page”
it stll works good
-
This reply was modified 8 years ago by
Guenni007.
June 20, 2017 at 5:15 pm in reply to: Portfolio link to another portfolio and open automatically a specific item #810521or do you mean you have used on a page the ajax-portfolio advanced layout element – and you want that it opens on first view a specific post (portfolio/event) ?
if it is in this way – you can look here : https://kriesi.at/support/topic/ajax-portfolio-on-main-menu-link/
you have to know the ID of your event! The rest is said on the post link above
June 20, 2017 at 5:11 pm in reply to: Portfolio link to another portfolio and open automatically a specific item #810516hm – i didn’t realy understand your request. You want a link (in menu ?) directly to a specific event (portfolio) ? and not to the event list ( or masonry etc)
so why don’t you insert that specific link
if you have activated on Menu “Screen Options” on top right side (it is a slide out screen)
you can make visible all boxes even the portfolio-items (don’t know if events are listed too) if not you can do it via custom-links.But! this will turn absolutely every portfolio to that layout – even if you are setting on editor a different layout.
you can exclude some post id by:
add_filter('avia_layout_filter', 'avia_layout_filter_mod', 10, 2); function avia_layout_filter_mod($layout, $post_id) { if( is_singular('portfolio') && !is_single(28986) ) { $layout['current'] = $layout['fullsize']; $layout['current']['main'] = 'fullsize'; } return $layout; }
you see here that portfolio with post id 28986 is not influenced – and than the settings will take place you had choosen on editor !
did you work with child-theme than there was a little snippet for functions.php:
add_filter('avia_layout_filter', 'avia_layout_filter_mod', 10, 2); function avia_layout_filter_mod($layout, $post_id) { if( is_singular('portfolio') ) { $layout['current'] = $layout['fullsize']; $layout['current']['main'] = 'fullsize'; } return $layout; }
June 20, 2017 at 10:53 am in reply to: Color Section Background Video – Un Mute / Activate Sound #810293if you like to have a check mark in that section here is an edited section.php : download
create a subfolder to your child-theme : “shortcodes”
put this edited sections.php into this subfolder and add to your functions.php of your child-theme:
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths){ $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
btw: a general change of that field could end up in a big cacophony if there are more than 1 film on a page – so it is per default set to mute the video
these files are allways set by OSX (Unix/Linux based) and are usually configuration files or folders.
you don’t need to upload them – but there has to be the pendents without the dot infront of it ( by the way – this is the normal way to hide files and folders from beeing displayed – similar f.e. to the .htaccess file in the root of a wordpress site.you only need to upload the folder and in it three files: functions.php (nearly empty) , style.css, and screenshot.png
I think you are now on a windows machine where you have set the explorer to show hidden files.
(you can switch off that behavior on Explorer window / Extras / folder options – goto maybe it is view (on German it is Ansicht) – Files and Folders – Hidden Files and Folders and mark here hide hidden files and folders )-
This reply was modified 8 years, 1 month ago by
Guenni007.
maybe try it with:
i can not prove it because i do not see your site. So i suppose there is only a clerical mistake on the code above.light-font-h3 h3 { font-weight: 300!important; font-family: "raleway" !important; }
if you can not find out the relative path to your fonts – use instead the absolute path to them. This is to keep out of harm’s way.
and a good place for that @font-face rules maybe the style.css of your child-theme
and a good place to upload could be wp-content/uploads/fonts/
i would give each font-family an own folder to keep overview (f.e. for your font : the folder average) – so it could be:@font-face { font-family: ‘averageregular’; src: url(‘https://your.site.url/wp-content/uploads/fonts/average/average-regular-webfont.woff2’) format(‘woff2’), url(‘https://your.site.url/wp-content/uploads/fonts/average/average-regular-webfont.woff’) format(‘woff’); font-weight: normal; font-style: normal; }
if you have http you must modify the url-
This reply was modified 8 years, 1 month ago by
Guenni007.
what code snippet do you use to create the header widget area?
Edit : if you are not happy with the behavior on responsive case with your solution ! give this a try:
this is a bit different hook point on enfold
this to functions.php of your child theme:add_action( 'ava_before_bottom_main_menu', 'enfold_customization_header_widget_area' ); function enfold_customization_header_widget_area() { dynamic_sidebar( 'header' ); }
and this to quick css:
#header_main .widget { float: right !important; padding: 10px 0 20px; width: 30%; } #header_main .textwidget { line-height: 24px; } @media screen and (max-width: 768px) { #header_main .widget { float: left !important; width: 100% } }
the widget will be a direct adjacent to logo container – and in responsive case it is under the Logo
-
This reply was modified 8 years, 1 month ago by
Guenni007.
what do you mean by : when trying to load an image through media library, the images dont show
the image is not viewed as an image instead you got a blank icon – or is it completely not seen? -
This reply was modified 8 years ago by
-
AuthorPosts