Forum Replies Created
-
AuthorPosts
-
Hi,
Technisch wäre es (mit sehr zeitaufwendigen Modifikationen) machbar, aber wir bieten eine derartige Funktion derzeit nicht an. Du kannst dir aber Plugins wie Borlabs Cache ansehen, welche ähnlich arbeiten.
Best regards,
PeterSeptember 26, 2018 at 12:57 pm in reply to: Problem with Attachment Display Settings : only full size #1014700Hi,
This issue pops up if WordPress can’t generate thumbnails (i.e. see https://wordpress.stackexchange.com/questions/192524/add-media-only-shows-full-size-under-attachment-display-settings ). I installed the wordpress health checker plugin (to check the server environment) and I think the GD image module is missing or not activated. Please contact the server administrator/host and ask him to activate the module (otherwise wordpress can’t process images or generate thumbnails).
Best regards,
PeterHi,
The code is correct. It was a small styling issue – I added following css code to the quick css field to fix it:
/* fullwidth for seotext section products */ #top.single-product .container .av-content-small.units { width: 100%; }
Best regards,
DudeHi,
If you do not select a breadcrumb parent page a php session variable will be used to determine which page could be a parent page. The results may vary depending on which page the website visitor views first. If you want a constant breadcrumb (which does not use sessions to “guess” the right parent page based on previously visited pages) you need to select the breadcrumb parent manually.
Best regards,
PeterHey!
I could not find any errors or unnecessary code :)
Regards,
PeterHi,
I adjusted the code a bit and replaced it with:
// masonry read more function ava_custom_script_mod(){ ?> <script> (function($){ $(window).on('av-height-change', function() { $('.av-caption-style-overlay').each(function() { var more = $(this).find('.av-masonry-read-more'); var cont = $(this).find('.av-masonry-entry-title'); if( more.length == 1 ) { cont.css("opacity", "1"); return; } $('<div class="av-masonry-read-more avia-button">mehr erfahren</div>').insertAfter(cont); cont.css("opacity", "1"); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_custom_script_mod');
The title is now hidden by default (I used this css code to hide it):
#top .av-caption-style-overlay .av-masonry-entry .av-masonry-entry-title{ opacity:0; }
and as soon as the javascript is loaded it will be displayed.
Best regards,
PeterHi,
I fixed it for you – I had to modify the enfold/taxonomy-portfolio_entries.php template and replaced:
$grid = new avia_post_grid(array( 'linking' => '', 'columns' => '3', 'contents' => 'title', 'sort' => 'no', 'paginate' => 'yes', 'set_breadcrumb' => false, ));
with
$grid = new avia_post_grid(array( 'linking' => '', 'columns' => '3', 'contents' => 'title', 'sort' => 'no', 'preview_mode' => 'custom', 'image_size' => 'full', 'paginate' => 'yes', 'set_breadcrumb' => false, ));
Best regards,
PeterHi,
@mary301187 – please create a new thread and we’ll help you there.must tell you that the mobile problem has happily disappeared! But then I tried it on the desktop and here it generates problems (I send you in private).
I tried to reproduce the issue with Chrome, Edge and Firefox but I couldn’t. Please try to clear your browser cache and check the website again.
Regarding the icon – according to: https://css-tricks.com/snippets/html/set-iphone-bookmark-icon/ following code should enable you to set an bookmark icon:
function avia_header_scripts_custom_bookmark_icons(){ ?> <link rel="apple-touch-icon-precomposed" href="icon" /> <link rel="apple-touch-icon" href="http://mywebsite.com/iphone-icon.png"/> <?php } add_action('wp_head', 'avia_header_scripts_custom_bookmark_icons');
Replace http://mywebsite.com/iphone-icon.png with the url to your icon
Best regards,
PeterHey CaliBee,
I fixed it by adding this code to your child theme:
function avia_fix_breadcrumb_trail_dude($trail) { foreach($trail as $key => $data) { if(strpos($data, 'Automatisch gespeicherter Entwurf') !== false) unset($trail[$key]); } return $trail; } add_filter('avia_breadcrumbs_trail','avia_fix_breadcrumb_trail_dude');
Best regards,
PeterHey bostonbookfest,
I attached a link to version 4.2.6 and 4.3 in the private content field.
Best regards,
DudeHi,
Please create us an admin account and we’ll review the child theme code.
Best regards,
PeterSeptember 26, 2018 at 9:13 am in reply to: copyright info for images inside a post and for post thumbnail #1014596Hi,
Please add this code to your child theme:
function avia_display_image_copyright( $atts ) { $atts = shortcode_atts(array('id' => ''), $atts); $copyright_text = ''; if(!empty($atts['id'])) { $copyright_text = get_post_meta($atts['id'], '_avia_attachment_copyright', true ); } else { if(has_post_thumbnail()) { $post_thumbnail_id = get_post_thumbnail_id(); $copyright_text = get_post_meta($post_thumbnail_id, '_avia_attachment_copyright', true ); } } return $copyright_text; } add_shortcode( 'av_display_image_copyright', 'avia_display_image_copyright' );
You can then use this shortcode:
[av_display_image_copyright]
to display the copyright information of the featured image. If you want to display the copyright information of another image (which is not the featured image) you can use this code:
[av_display_image_copyright id=852]
and replace 852 with the (attachment) id of the image.
Best regards,
PeterHi,
Great, glad it works now :)
Best regards,
PeterHi,
This line in your code:
<span class='copyright'><?php echo "©". " " . Copyright . " " . date ('Y') . " " . $copyright; ?></span>
was not valid because “Copyright” (without the quotes) was no variable, no constant, etc. but plain text. I moved it inside the “©” text string and this fixed the error.
Best regards,
PeterSeptember 26, 2018 at 9:08 am in reply to: All Enfold options are missing and cannot edit any pages #1014592Hi,
It seems like your jquery.js script/file was corrupt. I re-installed wordpress to overwrite all existing wordpress core files with unmodified files and the admin page started to work again.
Best regards,
PeterHey Karl,
If you want to enhance the wordpress search algorithm you can install a plugin like Relevanssi ( https://de.wordpress.org/plugins/relevanssi/ ). Then add this code to your child theme:add_filter('avf_ajax_search_function', 'avia_init_relevanssi', 10, 4); function avia_init_relevanssi($function_name, $search_query, $search_parameters, $defaults) { $function_name = 'avia_relevanssi_search'; return $function_name; } function avia_relevanssi_search($search_query, $search_parameters, $defaults) { global $query; $tempquery = $query; if(empty($tempquery)) $tempquery = new WP_Query(); $tempquery->query_vars = $search_parameters; relevanssi_do_query($tempquery); $posts = $tempquery->posts; return $posts; }
to use Relavanssi for the Enfold ajax search too.
Best regards,
PeterSeptember 26, 2018 at 8:45 am in reply to: Best way to hide/remove read more button on WooCommerce category page #1014579Hi,
Sure you can use this code instead:
add_action('init', 'avia_change_add_to_cart_buttons', 10); function avia_change_add_to_cart_buttons() { remove_action( 'woocommerce_after_shop_loop_item', 'avia_add_cart_button', 16); add_action( 'woocommerce_after_shop_loop_item', 'avia_add_cart_button_mod', 16); } function avia_add_cart_button_mod() { global $product, $avia_config; if ($product->get_type() == 'bundle' ){ $product = new WC_Product_Bundle($product->get_id()); } $extraClass = ""; ob_start(); woocommerce_template_loop_add_to_cart(); $output = ob_get_clean(); if(!empty($output)) { $output = '<a class="button show_details_button" href="'.get_permalink($product->get_id()).'"><span '.av_icon_string("details").'></span> '.__("Show Details","avia_framework").'</a>'; } if($output && !post_password_required() && '' == avia_get_option('product_layout','')) { echo " <div class='avia_cart_buttons single_button'>$output</div> "; } }
Best regards,
PeterSeptember 26, 2018 at 8:25 am in reply to: Sort category filter by slug in masonry portfolio #1014576Hey!
Great, glad it works now :)Best regards,
PeterHi,
Please create me an admin account and post a link to the architect page – I’ll check why the code doesn’t work for you.
Best regards,
PeterSeptember 25, 2018 at 6:38 pm in reply to: Sort category filter by slug in masonry portfolio #1014369Hey Ink_Eye,
You can try the advanced version of the plugin which supports hierarchical structures too: https://www.nsp-code.com/premium-plugins/wordpress-plugins/advanced-taxonomy-terms-order/
It’s not really possible to change the sort order in a user friendly way by modifying the theme. You would need to modify following code in enfold\config-templatebuilder\avia-shortcodes\av-helper-masonry.php (line 240+)
//get the categories for each post and create a string that serves as classes so the javascript can sort by those classes function sort_array($the_id) { $sort_classes = array("all_sort"); $item_terms = get_the_terms( $the_id, $this->atts['taxonomy']); if(is_object($item_terms) || is_array($item_terms)) { foreach ($item_terms as $term) { $term->slug = str_replace('%', '', $term->slug); $sort_classes[] = $term->slug.'_sort '; } } return $sort_classes; }
I.e. if you apply the sort() function ( http://php.net/manual/function.sort.php ) to the array the sort order would be alphabetical:
//get the categories for each post and create a string that serves as classes so the javascript can sort by those classes function sort_array($the_id) { $sort_classes = array("all_sort"); $item_terms = get_the_terms( $the_id, $this->atts['taxonomy']); if(is_object($item_terms) || is_array($item_terms)) { foreach ($item_terms as $term) { $term->slug = str_replace('%', '', $term->slug); $sort_classes[] = $term->slug.'_sort '; } } sort($sort_classes); return $sort_classes; }
Best regards,
PeterHey lorenzdeutsch,
Please create us an admin account and post a link to your website and we’ll look into it.
Best regards,
PeterHey Ink_Eye,
I added following code to the child theme functions.php – it fixed the issue on my end:
add_action('wp_footer', 'ava_auto_resize_masonry'); function ava_auto_resize_masonry(){ ?> <script> (function($){ var int = window.setInterval(function(){ $(window).trigger('resize'); $(window).trigger('av-content-el-height-changed'); }, 1000); })(jQuery); </script> <?php }
Please check if the issue is solved on your end too.
Best regards,
PeterHi,
I fixed it – the issue is caused by wpml which replaced the widget id (#text-6) for each language.
For English I had to use
#text_icl-5 .avia-button { background-color: #e4293a; border-color: #e4293a; } #text_icl-5 .avia-button .avia_iconbox_title { color: #000; }
and for Dutch:
#text_icl-2 .avia-button { background-color: #e4293a; border-color: #e4293a; } #text_icl-2 .avia-button .avia_iconbox_title { color: #000; }
Best regards,
PeterHey Jillian,
Option 1 is not easily possible. Please post a link to your website and I’ll investigate the css code for option 2.
Best regards,
PeterHi,
Great, glad you found a solution :)
Best regards,
PeterHi,
Did you solve the issue? I could log in on your website and I checked your wordpress directory for the .maintenance file (it wasn’t there).
Best regards,
PeterHi,
I corrected the code – please open up your child theme footer.php, delete the entire code and copy/paste the code from here: https://pastebin.com/raw/9fXBTLUy into the file.
Best regards,
PeterHi,
We do not create websites but we just sell stock wordpress themes. You can buy our Enfold theme (which was used to create the website http://spinecenteratlanta.com/team/dr-chappuis/ ) here: https://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990
Best regards,
PeterHi,
Great, glad I could help you :)
Best regards,
PeterSeptember 25, 2018 at 4:45 pm in reply to: On mobile, the search icon overlaps my horiz. rectangle logo. Put it at top? #1014278Hi,
It’s not easily possible to move the search icon but you could resize the logo based on the screen size – i.e. this css code:
@media only screen and (max-width: 989px) and (min-width: 768px){ .responsive #wrap_all .logo a, .responsive #wrap_all .logo img { max-width: 200px; } }
would resize the logo to 200px on screen resolutions between 989 and 768px. You can also add a margin-top to the code to center the logo if necessary:
@media only screen and (max-width: 989px) and (min-width: 768px){ .responsive #wrap_all .logo a, .responsive #wrap_all .logo img { max-width: 200px; } .responsive #wrap_all .logo img { margin-top: 30px; } }
Best regards,
Peter -
AuthorPosts