-
Search Results
-
Hi,
i found code in an a older version of an child themes functions.php.
Although i researched and cleared a lot by my own these snippets are unclear.Are they still necessary / in charge or can they be removed because they are not valid/deprecated?
add_filter('avf_form_use_wpmail', 'avia_change_php_mail', 10, 3); function avia_change_php_mail($active, $new_post, $form_params){ return true; }add_theme_support('avia_template_builder_custom_css');//entfernt den Kommentarblock und die Datumsangaben aus dem Combo Widget // class avia_combo_widget extends WP_Widget { function avia_combo_widget() { //Constructor $widget_ops = array('classname' => 'avia_combo_widget', 'description' => 'A widget that displays your popular posts, recent posts, recent comments and a tagcloud' ); $this->WP_Widget( 'avia_combo_widget', THEMENAME.' Combo Widget', $widget_ops ); } function widget($args, $instance) { // prints the widget extract($args, EXTR_SKIP); $posts = empty($instance['count']) ? 4 : $instance['count']; echo $before_widget; echo "<div class='tabcontainer border_tabs top_tab tab_initial_open tab_initial_open__1'>"; echo '<div class="tab first_tab active_tab widget_tab_popular"><span>'.__('Popular', 'avia_framework').'</span></div>'; echo "<div class='tab_content active_tab_content'>"; avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts); echo "</div>"; echo '<div class="tab widget_tab_recent"><span>'.__('Recent', 'avia_framework').'</span></div>'; echo "<div class='tab_content'>"; avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc'); echo "</div>"; echo '<div class="tab last_tab widget_tab_tags"><span>'.__('Tags', 'avia_framework').'</span></div>'; echo "<div class='tab_content tagcloud'>"; wp_tag_cloud('smallest=12&largest=12&unit=px'); echo "</div>"; echo "</div>"; echo $after_widget; } function update($new_instance, $old_instance) { $instance = $old_instance; foreach($new_instance as $key=>$value) { $instance[$key] = strip_tags($new_instance[$key]); } return $instance; } function form($instance) { //widgetform in backend $instance = wp_parse_args( (array) $instance, array('count' => 4) ); if(!is_numeric($instance['count'])) $instance['count'] = 4; ?> <p> <label for="<?php echo $this->get_field_id('count'); ?>">Number of posts you want to display: <input class="widefat" id="<?php echo $this->get_field_id('count'); ?>" name="<?php echo $this->get_field_name('count'); ?>" type="text" value="<?php echo esc_attr($instance['count']); ?>" /></label></p> <?php } } function avia_get_post_list( $avia_new_query , $excerpt = false) { global $avia_config; $image_size = isset($avia_config['widget_image_size']) ? $avia_config['widget_image_size'] : 'widget'; $additional_loop = new WP_Query($avia_new_query); if($additional_loop->have_posts()) : echo '<ul class="news-wrap">'; while ($additional_loop->have_posts()) : $additional_loop->the_post(); $format = ""; if(get_post_type() != 'post') $format = get_post_type(); if(empty($format)) $format = get_post_format(); if(empty($format)) $format = 'standard'; echo '<li class="news-content post-format-'.$format.'">'; //check for preview images: $image = ""; if(!current_theme_supports('force-post-thumbnails-in-widget')) { $slides = avia_post_meta(get_the_ID(), 'slideshow'); if( $slides != "" && !empty( $slides[0]['slideshow_image'] ) ) { $image = avia_image_by_id($slides[0]['slideshow_image'], 'widget', 'image'); } } if(!$image && current_theme_supports( 'post-thumbnails' )) { $image = get_the_post_thumbnail( get_the_ID(), $image_size ); } $time_format = apply_filters( 'avia_widget_time', get_option('date_format')." - ".get_option('time_format'), 'avia_get_post_list' ); $nothumb = (!$image) ? 'no-news-thumb' : ''; echo "<a class='news-link' title='".get_the_title()."' href='".get_permalink()."'>"; echo "<span class='news-thumb $nothumb'>"; echo $image; echo "</span>"; echo "<strong class='news-headline'>".avia_backend_truncate(get_the_title(), 55," "); //echo "<span class='news-time'>".get_the_time($time_format)."</span>"; echo "</strong>"; echo "</a>"; if('display title and excerpt' == $excerpt) { echo "<div class='news-excerpt'>"; the_excerpt(); echo "</div>"; } echo '</li>'; endwhile; echo "</ul>"; wp_reset_postdata(); endif; }add_filter('avf_debugging_info', 'remove_debugging_info', $info); function remove_debugging_info($info) { $info = ''; return $info; }kind regards
evaThere are massive issues with your theme – probably update related.
Here what`s going on – explained on one single example – but there are more:
In page XY there should be a CSS class: <em>headerinoverlay</em>
The class is <strong>still in the database</strong>, in the table <strong>postmeta</strong>[av_image src='https://......./wp-content/uploads/portrait.jpg' attachment='30256' attachment_size='full' copyright='' caption='yes' styling='' align='center' font_size='14' overlay_opacity='0.2' overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in' hover='av-hover-grow' appearance='' link='lightbox' target='' title_attr='' alt_attr='' lazy_loading='enabled' id='' custom_class='' template_class='' av_element_hidden_in_editor='0' av_uid='av-6j99wqx' sc_version='1.0' admin_preview_bg=''] <span class="headerinoverlay">TEXT [/av_image]The class <strong>is NOT in the actual HTML</strong> sourcecode.
<div class='avia-image-container av-6j99wqx-4360db518504a459e880005aec5fa2b1 av-styling- av-hover-grow avia_animated_image av-animated-when-visible-95 fade-in avia-align-center avia-builder-el-3 avia-builder-el-no-sibling noHover av-overlay-on-hover' itemprop="image" itemscope="itemscope" itemtype="https://schema.org/ImageObject" ><div class="avia-image-container-inner"><div class="avia-image-overlay-wrap"><a href="https://www………./wp-content/uploads/portrait.jpg" data-srcset="https://www………./wp-content/uploads/portrait.jpg 800w, https://www……./wp-content/uploads/portrait-80x73.jpg 80w, https://www......../wp-content/uploads/portrait-768x697.jpg 768w, https://www......../wp-content/uploads/portrait-705x640.jpg 705w" data-sizes="(max-width: 800px) 100vw, 800px" class='avia_image' ><div class="av-image-caption-overlay"><div class="av-caption-image-overlay-bg"></div><div class="av-image-caption-overlay-position"><div class="av-image-caption-overlay-center"><p>TEXT</p> </div></div></div><img loading="lazy" class='wp-image-30256 avia-img-lazy-loading-30256 avia_image ' src="https://www......../wp-content/uploads/portrait.jpg" alt='Portrait' title='Portraitfoto' height="726" width="800" itemprop="thumbnailUrl" srcset="https://www......../wp-content/uploads/portrait.jpg 800w, https://www......../wp-content/uploads/portrait-80x73.jpg 80w, https://www......../wp-content/uploads/portrait-768x697.jpg 768w, https://www......../wp-content/uploads/portrait-705x640.jpg 705w" sizes="(max-width: 800px) 100vw, 800px" /></a></div></div></div></div><div class='flex_column av-6149og9-1350048edcab4a29bac43fd434ba5c8f av_two_third avia-builder-el-4 el_after_av_one_third avia-builder-el-last flex_column_div av-zero-column-padding ' ><section class='av_textblock_section av-kr20wrz8-63e74a5f33bc7afd1e2b9d372feba404' itemscope="itemscope" itemtype="https://schema.org/BlogPosting" itemprop="blogPost" >The class<strong> is NOT in the ALB</strong>
[av_image src='https://......./wp-content/uploads/portrait.jpg' attachment='30256' attachment_size='full' copyright='' caption='yes' styling='' align='center' font_size='' overlay_opacity='0.2' overlay_color='#000000' overlay_text_color='#ffffff' animation='fade-in' hover='av-hover-grow' appearance='on-hover' link='lightbox' target='' title_attr='' alt_attr='' lazy_loading='enabled' id='' custom_class='' template_class='' av_element_hidden_in_editor='0' av_uid='av-6j99wqx' sc_version='1.0' admin_preview_bg=''] TEXT[/av_image]So there is no way to edit it or remove it cause i cant find.
When you compare the code from the database with the code from the ALB you will realize that there are also other things wich are different.This (gone CSS) happened to a lot of CSS and this is a very serious problem.
Please fix it or tell me how i get my CSS back from the DB into the ALB!Eva
Topic: Posts in wrong category
Hello
when i call “Category Opera” i see posts from “Category Opera” BUT i see also “Impress”, “GDPR-Declaration” and about ten other posts which dont belong to the “Category Opera”.
In fact: “Impress” and “GDPR” are not even posts – they are pages.I created a page called “Opera”
I added the masonry element
I picked “Show posts from Category”–> “Opera”[av_masonry_entries link='category,1' wc_prod_visible='' wc_prod_hidden='hide' wc_prod_featured='' prod_order_by='' prod_order='' date_filter='' date_filter_start='' date_filter_end='' date_filter_format='yy/mm/dd' period_filter_unit_1='1' period_filter_unit_2='year' sort='yes' query_orderby='date' query_order='DESC' caption_elements='title excerpt' caption_styling='' caption_display='always' size='fixed masonry' orientation='' image_size='masonry' gap='large' columns='2' av-medium-columns='' av-small-columns='' av-mini-columns='' items='12' paginate='load_more' color='' custom_bg='' overlay_fx='grayscale' animation='active' img_scrset='' lazy_loading='enabled' id='' custom_class='' template_class='' av_uid='av-l6gb8e5x' sc_version='1.0']This is the content of my functions:
<?php //$avia_config['imgSize']['square-custom'] = array('width'=>300, 'height'=>300); // small image for blogs //$avia_config['imgSize']['square2'] = array('width'=>400, 'height'=>400); // small image for blogs /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */ function enqueue_parent_theme_style() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); } add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style'); /* Proper way to enqueue styles and scripts */ function theme_name_scripts() { wp_enqueue_style( 'style-name', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'theme_name_scripts' ); /* Activate Avia debug mode */ add_action('avia_builder_mode', "builder_set_debug"); function builder_set_debug() { return "debug"; } add_filter( 'widget_text', 'do_shortcode' ); add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if ( $args['title'] == 'Blog - Aktuelle Neuigkeiten' ) { $args['title'] = get_the_title($id); $args['link'] = get_permalink($id); $args['heading'] = 'h1'; } return $args; }I can solve it by deleting the “wrong pages”, than flushing the permalinks, then adding the pages again (best with a new slug).
But is only possible with a small number of pagesI cant not show you live since i am an Xampp.
Eva Simone
We’re happy to announce that Enfold 5.0 is finally available. Since this is a major update, we would recommend that users update on a staging or development sites first.
Please see the change log below:
New demo: https://kriesi.at/themes/enfold-parallax/
feature: added position options (responsive) to: - Image - Button - Columns feature: added "Curtain Reveal Animations" (found in Animations Dropdown) to: - Image - Columns - Masonry - Masonry Gallery feature: added Animations Dropdown to: - Button feature: added parallax option (responsive) to: - Image - Columns feature: added transform options (perspective, rotate3d, scale3d, skew, translate3d) (responsive) to: - Image feature: added options to scale (zoom) and opacity for images when slide becomes active: - Easy Slider - Fullwitdh Easy Slider feature: minimum column height in % of surrounding layout container feature: theme option to disallow background image parallax and delayed animations on mobile (Performance Tab) - changed to be allowed by default feature: added swipe to all devices supporting touch screens (not only to mobile devices) feature: Extended Animations Dropdown with "Advanced Fade Animations", "Special Advanced Animations" feature: ALB Horizontal Gallery added rotation and styling options feature: ALB PostSlider added Navigation Dots feature: ALB Testimonial Slider added navigation styling and animation options feature: Adjusted options (and new options) for most sliders - under progress: - Slider Control Styling - Show Navigation Arrows and Dots (or none) - Custom colors for Navigation Arrows and Dots - Transitions and speed - Autorotate, end with last slide - Disable/Enable manual rotate (hide corresponding Navigation Arrows) feature: WPML global layout theme options - keep in sync options for all languages feature: added support for RankMath SEO plugin (active beta) tweak: CSS Burger Menu - remove space above mobile menu in landscape orientation and mobile devices tweak: support image links for slideshows with first slides caption as permanent caption tweak: option to add "alb templates" to top of page (not only to bottom) tweak: add option "Use custom link (fallback is image link)" to ALB Masonry Gallery tweak: ALB Tab Section new option "Deeplink String" (Advanced Tab -> Developer Settings) to set a custom link hash fixed: Block editor and ALB Tab Section have strange behaviour in backend fixed: Accordion Slider division by zero if no entries or images fixed: Anchor column link not working when set to open in the same window fixed: Block editor typography letter spacing not working fixed: Google Search only allows 1 tag FAQPage tweak: jQuery 3.0 remove deprecated $.proxy in all theme files: - enfold\config-gutenberg\js\avia_gutenberg.js - enfold\config-templatebuilder\avia-shortcodes\slideshow\slideshow.js - enfold\config-templatebuilder/avia-shortcodes/slideshow_accordion/slideshow_accordion.js - enfold\config-templatebuilder\avia-shortcodes\slideshow_fullscreen\slideshow_fullscreen.js - enfold\config-templatebuilder\avia-shortcodes\menu\menu.js - enfold\config-templatebuilder\avia-template-builder\assets\js\avia-tab-section.js - enfold\config-templatebuilder\avia-template-builder\assets\js\avia-tooltip.js - enfold\js\avia.js - enfold\js\shortcodes.js - enfold\framework\js\avia_sidebar.js - enfold\framework\js\conditional_load\avia_google_maps_api.js - enfold\framework\js\conditional_load\avia_google_maps_front.js - enfold\framework\js\conditional_load\avia_google_recaptcha_api.js tweak: jQuery 3.0 remove deprecated $.fn.focus() in js\aviapopup\jquery.magnific-popup.js updated: sync all language files version 5.0 (close to final release) updated: Dutch language files nl_NL (version 5.0 provided by EZWebdesign - Roger Hoen ) DEVELOPER: tweak: support json string for slideshow options in HTML (data-slideshow-json="...") added conditional body classes: - 'pointer-device-undefined', 'pointer-device-fine', 'pointer-device-coarse', 'pointer-device-coarse-only', 'pointer-device-none', - 'touch-device', 'no-touch-device' added: class aviaPopupTemplatesPlugins added: filter 'avf_css_rules_position' - allows to alter position rules top bottom left right added: filter 'avf_css_rules_animation_duration' - allows to alter animation-duration rules added: filter 'avf_css_rules_animation_delay' - allows to alter animation-delay rules added: filter 'avf_css_rules_transition_duration' - allows to alter transition-duration rules added: filter 'avf_el_styling_responsive_styles_skip' - skip creating rules on element basis added: filter 'avf_get_global_option_keys' - modify global options key attributes before adding to internal logic added: filter 'avf_is_global_option' - remove a global option attribute deprecated: AviaHelper::css_4value_helper() no longer needed removed: $.AviaParallaxElement - replaced by AviaObjectParallaxElement in enfold\js\avia-snippet-parallax.js renamed: function sonar_keyframes -> keyframes renamed: filter 'avf_css_rules_sonar_keyframes' -> 'avf_css_rules_keyframes'Topic: Custom ID images
Hi guys,
I’m adding some CSS to make my website work better on mobile.
The website is aligned left on desktop but I’d like to have it aligned center on mobile.
I have a series of small graphic dividers used across the whole website which I’d like to align center on mobile. I was thinking to add the same custom class to all those little dividers (they are jpeg, so inserted as images in a column) and then moving them all together on mobile. I can not figure out how to do that.
I started with:
@media only screen and (max-width:989px)
.avia-image-container-inner #greca {
float: right!important;
}Where #greca is the custom class, but it doesn’t work.
Any chance you can help me?
Many thanks
























