Forum Replies Created

Viewing 30 posts - 4,591 through 4,620 (of 11,513 total)
  • Author
    Posts
  • in reply to: new class in quick css doesn't work #1267517

    Gemeint von mir war – ob du nicht hier Einstellungen gesetzt hast – bzw. bei Übernahme einer Demo dort Einstellungen bestehen.

    in reply to: Theme Bug #1267488

    the class: special_amp gets all the color from .main-color a, .main-color strong etc pp

    you can overwrite the rules on :

    .special_amp {
        font-family: inherit;
        font-style: normal;
        font-size: inherit;
        line-height: inherit;
        font-weight: inherit !important;
        color: currentColor !important;
    }
    in reply to: Need to remove link from the post title, on a single post #1267485

    And dear Mods ( and Devs ) this might be the standard behavior. It makes no sense to have a link from a post to the post itself!

    in reply to: Need to remove link from the post title, on a single post #1267484

    btw: the hover style is correlated with the title itself (not the anchor), so it remains valid.
    if you do not like to have an opacity of 0.7 on hovering the heading:
    this to quick css ( maybe an important is necessary )

    .html_elegant-blog #top .post-entry .post-title:hover, 
    .html_elegant-blog .avia-content-slider .slide-entry-title:hover {
        opacity: 1;
    }
    in reply to: Need to remove link from the post title, on a single post #1267481

    see here:

    https://kriesi.at/support/topic/remove-permanent-link-from-the-post-h1-title/#post-1220155
    this to your child-theme functions.php:

    function avia_default_title_filter($current_post)
    {
    	if(!empty($current_post['title']))
    	{
    		$default_heading = is_singular() ? 'h1' : 'h2';
    		$args = array(
    					'heading'		=> $default_heading,
    					'extra_class'	=> ''
    				);
    		
    		/**
    		 * @since 4.5.5
    		 * @return array
    		 */
    		$args = apply_filters( 'avf_customize_heading_settings', $args, 'avia_default_title_filter', array( $current_post ) );
    		
    		$heading = ! empty( $args['heading'] ) ? $args['heading'] : $default_heading;
    		$css = ! empty( $args['extra_class'] ) ? $args['extra_class'] : '';
    
    		$output  = "";
    		$output .= "<{$heading} class='post-title entry-title {$css}' ".avia_markup_helper(array('context' => 'entry_title','echo'=>false)).">";
    		$output .= is_singular() ? $current_post['title'] : "<a href='".get_permalink()."' rel='bookmark' title='". __('Permanent Link:','avia_framework')." ".$current_post['title']."'>".$current_post['title'];
    		$output .= "<span class='post-format-icon minor-meta'></span>";
    		$output .= is_singular() ? '' : '</a>';
    		$output .= "</{$heading}>";
    		$current_post['title'] = $output;
    	}
    	return $current_post;
    }

    the links on the blog are still active – only the links on single-post are influenced.
    btw: you can change on that line ( ternary operator ) :

    $default_heading = is_singular() ? 'h1' : 'h2';
    

    if you like to have on single post (first tag) a h1 or whatever you like
    h2 is only for blog-view (second tag in ternary operator)

    in reply to: new class in quick css doesn't work #1267266

    zunächst ist es in der Tat so, dass ich jetzt schon mal beobachtet habe, dass inline-style – wie der deine nicht die bestehenden css überschreibt.
    Das ist eigentlich sonderbar, denn gemäß den Spezifitätsregeln ( Link ) sollte das eigentlich immer funktionieren.

    Sei es drum:
    schau mal ob du nicht z.B. in Enfold – Erweitertes Styling nicht für die Überschriften Regeln bestehen hast.
    Diese Regeln dort stehen noch hinter denen der Quick Css Regeln – also in der Kaskade weiter unten.

    du könntest die Regeln oben mal alle auf !important stellen. Da du die ja inline verwenden möchtest wäre das o.k.

    in reply to: Unable to add icons to Mega Menu items #1267259

    can you try this in your child-theme functions.php:

    add_filter('wp_nav_menu_items', 'do_shortcode');

    on my installation its working without that snippet – but maybe it helps.

    in reply to: Best way to change grid layout #1267073

    by the way dear Mods – it would be nice to have an info on newly added filters how to use them with a little example.
    maybe on github – but better on the board itself or in documentation. Or as a link to a page from the changelog text where the added filters are listed.
    f.e.: avf_lightbox_show_alt_text etc.

    in reply to: Best way to change grid layout #1267068

    But I think you are on a good way, if you already found the places in the source code where it has to be changed.
    f.e on index.php – some lines under your columns (count) you see that filter (line55) avf_post_slider_args

    Now this is not general knowledge like css or jQuery which serves as a basis for something like this.
    It is pure Enfold knowledge. Enfold has a lot of hooks and filters already built in.
    So I look at the list of hooks and filters and try to find out what they are for.
    btw.: the list is not complete – if you search the whole enfold folder for “do_action” you will find a lot of possibilities.

    By the way, it is very helpful to create a small file in which you write down such snippets with the purpose they have and possibly with a link to the post that refers to the application.

    2nd : the documentation is well done and is usually ignored as an aid.

    3rd : Read, read, learn.
    By not only following my questions here, but also reading through questions from other participants, I get a good coverage of problems that can arise using the Enfold theme. Every question that is asked here – could also be a question from my customers to me.
    If you look at my postings from the beginning here, you’ll see that I wasn’t exactly the expert either. The trick is to question the answers as to why the solutions offered work.

    in reply to: Toggle header p to h3 #1266942

    There is probably also a jQuery solution without the need to deposit a child theme version of toggles.php file .
    However, some of the contributors here are of the opinion that bots such as the Google Bot would probably read over these jQuery replacements and still SEO wise lead the as p-tag.

    you can test this first in your child-theme functions.php:

    function replace_tags_with_tags(){
    ?>
    <script>
      (function($) {       
          function replaceElementTag(targetSelector, newTagString) {
            $(targetSelector).each(function(){
              var newElem = $(newTagString, {html: $(this).html()});
              $.each(this.attributes, function() {
                newElem.attr(this.name, this.value);
              });
              $(this).replaceWith(newElem);
            });
          }
          replaceElementTag('.togglecontainer p.toggler', '<h3></h3>');
      }(jQuery)); 
    </script>
    <?php
    }
    add_action('wp_footer', 'replace_tags_with_tags');
    in reply to: Toggle header p to h3 #1266941

    i realy think that the best and propper way would be to have a child-theme toggles.php file
    you find the original file in your enfold folder: /config-templatebuilder/avia-shortcodes/toggles/

    on line 917 ( Enfold newest Version) there is :

    $output .= '        <p data-fake-id="#' . $toggle_atts['custom_id'] …
    

    and the closing tag is on line 918

    $output .= '        <span class="vert_icon"></span><span class="hor_icon"></span></span></p>';
    

    instead of those two p insert your h3
    see here the edited file: https://pastebin.com/fREzmbUb
    or download it from my pastebin : Link

    put that edited ALB Element to your child-theme/shortcodes folder
    this folder is not per se in your child-themes folder – create it then

    and put this ( if it is not allready done) to your child-theme functions.php :
    you find this snippet on documentation : https://kriesi.at/documentation/enfold/intro-to-layout-builder/#customization

    function avia_include_shortcode_template($paths){
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
      return $paths;
    }
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    • This reply was modified 4 years, 7 months ago by Guenni007.
    in reply to: How to change menu in photography demo design #1266929

    what about your menu options page on dashboard
    did you create a menu and mark for it that it is the enfold main menu?

    in reply to: left to right and right to left animation modification #1266920

    this is nearly the same rule from shortcodes.css – and you only want to overwrite the timing to 0.7s

    one difference is that original shortcodes.css has 0.8s – and allthough i could not imagine that the 0. is mandatory try it with 0.7s instead of .7s

    and you do not see the code on developer tools to be active? because i couldn’t see a difference of 0.1s

    in reply to: Best way to change grid layout #1266782

    if you do not have child-theme you can manage it by functions.php of parent – but then again an update will overwrite all settings there.
    the right place to insert those snippets it at the bottom of funcitons.php
    just before :

    require_once( 'functions-enfold.php');
    

    there is a comment on that place :

    /*
     *  register custom functions that are not related to the framework but necessary for the theme to run
     */
    in reply to: Best way to change grid layout #1266780

    you can try it with filter on that.
    Put this to your child-theme functions.php
    context blog goes with the context : index

    add_filter('avf_post_slider_args', function($atts, $context){
      global $posts;
      if($context == 'index') {
        $atts['type']  = grid; 
        $atts['columns']  = 2;
      } 
      if($context == 'archive') {
        $atts['type']  = grid; 
        $atts['columns']  = 4;
      }
      if($context == 'tag') {
        $atts['type']  = grid; 
        $atts['columns']  = 5;
      }
      return $atts;
    }, 10, 2);

    shortversion if the column-count is the same:

    add_filter('avf_post_slider_args', function($atts, $context){
    	global $posts;
    	if($context == 'index' || $context == 'archive' || $context == 'tag') { $atts['columns']  = 2;}
    	return $atts;
    }, 10, 2);
    in reply to: Youtube Video embed doesn't work #1266779
    in reply to: Help putting icons in one row on small bar in header #1266325

    or with the animated icons:

    <p class="ontop"><a href="mailto: (Email address hidden if logged out) ">[av_font_icon icon='ue805' font='entypo-fontello' size='24px' position='left'][/av_font_icon] (Email address hidden if logged out) </a></p><p class="ontop"><a href="tel:8056580109">[av_font_icon icon='ue854' font='entypo-fontello' size='24px' position='left'][/av_font_icon](805) 658-0109</a></p>

    and:

    .phone-info  p.ontop {
        display: inline-block;
        margin-right: 10px;
    }

    but then you had to style the postition of the icons.
    maybe a mod could help you to do that

    in reply to: Help putting icons in one row on small bar in header #1266322

    maybe you try only html and a bit of quick css:
    put this to your phone-info field:
    <a href="tel:8056580109"><span class="tel">(805) 658-0109</span></a> | <a href="mailto: (Email address hidden if logged out) "><span class="mail"> (Email address hidden if logged out) </span></a>

    The telephone number in the href should be with maybe countrycode we in Germany got +49 – you will know your whole number ( no spaces in it)
    in the span itself you can write what you like to have – maybe only Mail and Phone

    then to quick css:

    .phone-info span::before {
        font-family: entypo-fontello;
        font-size: 24px;
        padding-right: 5px;
        position: relative;
        top: 2px;
    }
    
    .phone-info .mail::before { content: "\e805"; color: #090}
    .phone-info .tel::before { content: "\e854"; color: #009}

    if you do not need extra color for the icons – put a uniform color to the span:before rule and erase it in mail and tel

    in reply to: WordPress 5.6 and PHP 8 #1266289

    on one installation the shrinking header was set to a fixed height with the same line-height. – and what was annoying was that it was set to the smallest value after shrinking. So both classes header-scrolled and header-scrolled-full were set directly

    in reply to: WordPress 5.6 and PHP 8 #1266032

    No – php8 is not yet available at my provider (AllInkl)

    Wordfence Info on that

    • This reply was modified 4 years, 7 months ago by Guenni007.
    in reply to: WordPress 5.6 and PHP 8 #1266008

    i have disabled on most of my installations – the automatic updates.
    I do wait – because the new embedded jQuery ( v3.5.1 ) will cause on a lot of themes and plugins conflicts.
    If the installation is allready done – try to install Enable jQuery Migrate Helper and set to legacy 1.12.4 jQuery
    until fixes are available

    in reply to: Problems with Enfold in combination with WordPress 5.6 #1265977

    maybe they did an update fo jQuery. in Preparation to php8
    On one of my installation the shrinking header script does not work after that WP5.6 install.

    Try to test the Enable jQuery Migrate Helper Plugin in this case.
    After Installation under Tools – jQuery Migrate and switch to Legacy 1.12.4 – and test if that helps til fix is available

    Yes try in manual link option of the icon alb:
    https://www.youtube.com/watch?v=G0k3kHtyoqc?iframe=true&autoplay=1

    in reply to: Alt + title attributes for button and logo? #1265806

    for Logo try it with the filter in your child-theme functions.php:

    function avf_change_logo_alt($alt) {
       $alt = "New Alternate Text Here";
       return $alt;     
    }
    add_filter('avf_logo_alt', 'avf_change_logo_alt');
    
    function avf_change_logo_title($title) {
       $title = "The new Title is here";
       return $title;     
    }
    add_filter('avf_logo_title', 'avf_change_logo_title');

    and for alternate logo ( logo if you set transparency logo) try:

    function my_custom_attributes_for_alternate_logo($header_filtered){
      $header_filtered['header_replacement_logo_title']  = 'Alternate Logo Title';
      $header_filtered['header_replacement_logo_alt']  = 'Alternate Logo Alt';
      return $header_filtered;
    }
    add_filter( 'avf_transparency_logo_data', 'my_custom_attributes_for_alternate_logo' );
    in reply to: Alt + title attributes for button and logo? #1265800

    Well – i don’t remember that this has been implemented before. But a custom title attribute input field is still there! –
    But to my opinion it is better positioned at the anchor itself than on the parent container.
    {$title_attr} could be inserted to the output on the anchor:

    A custom-field for alt should be as easy to have here too.

    f.e.: https://pastebin.com/HqE8KKgP
    Download: Link

    The alt attribute input field is not attached to display title field it is alway there if a custom-alt is inserted

    to have your own child-theme alb elements see here: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    use flex-model for it.
    Are these layouts grid-row elements or columns?

    if you have grid rows – just give a custom-class to your grid-row element that should break reverse.
    f.e. : reverse-order

    just copy to your quick css:

    @media only screen and (max-width: 989px) {
      .av-layout-grid-container.reverse-order {
        display: flex !important;
        flex-flow: row wrap-reverse;
      }
      .av-layout-grid-container .flex_cell {
        min-height: 350px 
      }
    }

    ( if you have the break-point set on grid-row element at 768 just change the media querry value to 767px )

    the last rule is just to not loose the background-images in my example : https://webers-testseite.de/reverse-order/

    But – it is not an essential cookie!
    This would contradict the GDPR.
    You would invite your visitors to admonish you. It is almost the prime example of a cookie with data collection rage.

    • This reply was modified 4 years, 7 months ago by Guenni007.
    in reply to: Looping potfolio #1265623

    the other question is : how to loop only in the same category …
    use search function with : “same_category”

    in reply to: no individual font sizes in "text-block" #1265616

    den stellt man bei “Allgemeines Styling” Schriften ein.
    Wie gesagt das erbt der p-tag vom body-tag

    Ein Inline-Style schlägt mit Spezfität : 1,0,0,0 zu buche (https://css-tricks.com/specifics-on-css-specificity/)

    warum der inline-style einen Selector mit 0,1,1,1 nicht überbietet kann ich momentan nicht sagen – normalerweise ist ein inline-style immer der Sieger!

    _______________

    An inline style is rated with specificity : 1,0,0,0 (https://css-tricks.com/specifics-on-css-specificity/)

    why the inline-style does not outbid a selector with 0,1,1,1 is something I cannot say at the moment – normally an inline-style is always the winner!

    • This reply was modified 4 years, 7 months ago by Guenni007.
    in reply to: no individual font sizes in "text-block" #1265578

    PS : jetzt weiss ich es – du hast unter advanced styling den p-tag definiert.
    diese anweisungen erscheinen dort hinter der besagten Stelle

Viewing 30 posts - 4,591 through 4,620 (of 11,513 total)