Forum Replies Created

Viewing 30 posts - 4,561 through 4,590 (of 11,513 total)
  • Author
    Posts
  • in reply to: polylang in socket #1269053

    to have the shortcode option on polylang first add this to your child-theme functions.php:

    function polylang_shortcode($atts, $content = null){
    	if (empty($content))
    	return '';
    	extract( shortcode_atts( array('lang' => ''), $atts ) );
    	if (empty($lang))
    	return "<h3>You must specify 'lang' using shortcode: polylang</h3>";
    	return ($lang == pll_current_language()) ? $content : '';
    }
    add_shortcode('polylang', 'polylang_shortcode');

    after that you can insert this :
    [polylang lang="en"]english content[/polylang][polylang lang="de"]deutscher Inhalt[/polylang][polylang lang="nl"]Nederlandse inhoud[/polylang]

    Mh – that class isn’t added to mediaelementwrapper video : av-mediajs-loaded in Safari!
    so the trigger for that function does not exist on safari.
    On Firefox and Chrome this class is added when the video has fully loaded.

    in reply to: Randomize a single Post Slider #1268854

    on your link on top there is another interesting snippet – it will insert the oportunity to choose the orderby option on each alb.
    https://kriesi.at/documentation/enfold/post-slider/#how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element
    then take two blog posts for the newest posts of “Einsätze” and “Neuigkeiten” and for the last one only the randomized one a post slider?
    the two show as grid with one column.

    On the postslider you can choose the offset not to show duplicate post on the page.
    Randomize only that slider

    https://webers-testseite.de/jakob/

    PS : mit dem Snippet oben, könnt ihr dann natürlich auch drei post-slider nehmen.
    die zusätzlichen Optionen sind unten platziert:

    • This reply was modified 4 years, 6 months ago by Guenni007.
    in reply to: Can I delete all these random pages the theme comes with #1268587

    your start point was an imported Demo File? and you now like to delete not used Example Pages
    Yes you can delete them – all at once – just mark them in the list view and choose “move to bin” and then “apply”

    These pages are moved to the bin. However, if you’re sure, you might as well empty the bin now. Especially since it is only then possible to reassign the page name in the permalinks. Many people are surprised when they try to create a new contact page, for example, and it is then listed in the permalinks as /contact-2.

    mediaelement-and-player.min.js is part of WordPress – so i guess on one of the last updates ( and as i said i did not update to WP5.6) there must be a sourcecode difference to older WP Versions.

    Yes i know – but exactly this code does work on Safari too on former installations.

    btw. : this part is only for child-theme shortcodes replacement and should stay in your child-theme functions.php

    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;
    }

    these are my two sites ( backgroud-video on slider and on color-section) :
    https://webers-testseite.de/mute-unmute-video-slide/
    https://webers-testseite.de/mute-unmute/

    And you are right – that on safari this did not work – with exactly your error log. i tested this on former times on safari too and it worked. So something must have changed in the source code either Enfolds, WordPress or Safari. These Sites above are from 2019-02-13 and color-section site from : 2018-05-01.
    By the way: the domain above is still on WP 5.5.3

    in reply to: Why is this code not working #1268389

    if you look in dev tools – the id ( postid-123 or page-id-123) you can see at the body tag ( #top )
    be careful of the hyphen posts do have only one no hyphen between post and id.

    If not today when then one should do something good to a Ludwig.
    * Ludwig v. Beethoven baptized on 17.12.1770

    best whishes from Bonn to the rest of the world ;)

    try this – i added contact form 7 support – so when the shortcode for contact-form 7 is used the recaptcha script is loaded – otherwise not.

    function prohibit_google_recaptcha( $prohibited ){
      global $post;
      if( ! $post instanceof WP_Post ){
        return $prohibited;
      }
      
    
      /*** 1) Check to load recaptcha on given page ID's only*/
      $allowed = array( 1396, 1407 );
      $prohibited = in_array( $post->ID, $allowed ) ? false : true;
      
      /*** 2) Check to not load recaptcha on given page ID's - load on all others*/
      $not_allowed = array( 12, 25, 35 );
      $prohibited = in_array( $post->ID, $not_allowed ) ? true : false; 
    
      /*** 3) Get content to check (ALB or normal content) ***/
      $content = Avia_Builder()->get_post_content( $post->ID );
      $prohibited = ( false !== strpos( $content, '[contact-form-7 ' ) || false !== strpos( $content, '[av_contact ' ) ) ? false : true;
    
      return $prohibited;
    }
    
    add_filter( 'avf_load_google_recaptcha_api_prohibited', 'prohibit_google_recaptcha', 10, 1 );

    i only use 3) Option to check if contact shortcodes are used.

    in reply to: Blank line between image. #1268085

    is this an actual Enfold Version?
    this is not the actual Version fo TinyMCE !

    by the way : how did you insert images here on board – i only see on source-code your links to your posted images.
    My images you can see above on the answers.

    in reply to: Blank line between image. #1268081

    I do not see your private content because i’m participant as you are.

    But : a line-break is a break ! if you do not want to have between your images a little space – do insert one image by the other ones without any break
    and give a custom-class to the text-block itself like f.e.: images-block

    then:

    .avia_textblock.images-block img {
    display: block
    }

    in reply to: Why is this code not working #1268079

    ok – you got a slideshow – selector is a bit in dependency what kind of Caption you use ( framed etc)

    if you only like to have it not vertically centered then Rikards code is to use.
    If you want to influence the distance between : avia-caption-title and avia-caption-content
    you can use:

    .postid-3540  .slideshow_align_caption .avia-caption-title {
        margin-bottom: 20px !important;
    }

    but the code ( if your postid is correct ) had to work too:
    here a testpage with only #top h2

    in reply to: Blank line between image. #1268076

    if you are in textmode of Editor in Textblock ALB you will see this:

    in reply to: After domain change – no SVG #1268074

    maybe you have activated the option : force inline-svg that will transform all : <img src="image-source.svg" /> to svg itself
    then svgs as inline svg needs absolute dimension settings – otherwise they will have 0x0px dimension :

    img[src*=".svg"], svg {
        width: 2500px;
        display: block;
    }

    the front-end width is then done by surrounding container.

    in reply to: Theme Bug #1268070

    the :

    color: currentColor !important;
    

    is responsible for the font color. Erase only that line and see if your will be happy with that.

    in reply to: Toggle header p to h3 #1267945

    i guess you had to help her – she ( or he – could be both with that nick) – only 2 postings on her history. Maybe that is hard stuff for a beginner

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

    did you copy&paste the line above?
    I don’t see any “&” so it can hardly be from my snippet up there.

    Where did you paste the code?

    And can you please post an example code you inserted to your menu?

    in reply to: Theme Bug #1267940

    Sorry then you have to wait for Nikko or any other Mod – i’m participant as you are. So i do not see private content area.

    the other hint is to put the code to your quick css:

    in reply to: After domain change – no SVG #1267936

    i can see all the svg (Firefox, Chrome and Safari ) on your site mentioned above ( but https://www.flo-haaf.de )
    ( but your logo on top comes from . https://ftp.flo-haaf.de )
    so maybe all your browser cache had to be cleaned ? You will surely have checked your site frequently with said browsers, so they may still have the old links in there.

    in reply to: highligt search terms #1267933

    on your first post on this topic you are talking about a plugin – but the fix is for something different ?

    in reply to: Blank line between image. #1267810

    did you try that button mentioned above?

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

    na dann lass es doch auf !important

    da du es ja inline verwendest, und es mit keinem Selektor von Enfold kollidiert – ist es ok.

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

    die original css Anweisung für Überschriften kommt aus:

    .main_color h3

    versuch also mal ob
    h5.gelb etc nicht zum Ziel führt

    oder eben

    .gelb {
    color: gelb !important
    }

    hast du irgendwelche Caching Tools laufen ; das Merging von Enfold ( Enfold oder Enfold-Child – Leistung ) an – dann refreshe auch diese Files.
    denn selbt im Textblock ALB Element gesetzte Farbe für die Schrift überschreibt die inline gesetzte nicht:

    Läuft bei dir schon WP 5.6 – siehe: https://kriesi.at/support/topic/problems-after-updating-to-wordpress-5-6-read-this-first/

    in reply to: Theme Bug #1267715

    https://kriesi.at/support/topic/maybe-its-about-time-for-a-sticky-post-regarding-wordpress-5-6/

    maybe that is a fix for your mobile menu problem – til they have the next update.

    This: https://kriesi.at/support/topic/theme-bug/#post-1267488
    is a solution for your ampersand problem i think. ( our “&” symbols )
    Put it in quick css field and refresh all caches and if you have css and js merging on ( Enfold – Performance ) – regenerate those files too.

    in reply to: Dragging Elements While Scrolling screen Issue in Editor #1267712

    on my installation this drag&drop works well – but

    However, I often use this small button on the right side for layouts with a lot of content.
    For this it is also useful to collapse the dashboard.

    the ALB Elements Bar is then sticky on top – you can scroll the content underneath.

    After Work is done you have nearby the ALB Elements Bar the buttons for updating the post:

    in reply to: Theme Bug #1267708

    hm where did you ask for menu / mobile menu ?

    Hi,

    There is a rule that is being created from your CSS that messed up 100 pages of our website and we’ve tried everything and cannot fix it. Bunch of our “&” symbols along with “Subtitles” have suddenly turned Blue color and we can’t do anything to fix this. Need your HELP ASAP website looks like a Zebra, very unprofessional…

    in reply to: Blank line between image. #1267707

    how did you insert that code – in textblock element?
    if you use this button to enter a break it will insert that code :

    <br class="avia-permanent-lb" />
    


    the br tags with classes remain in the DOM

    https://kriesi.at/themes/enfold-consulting/
    this is done only with enfold options already – the place ( enfold – general layout) where you have set up the left menu bar – just under it there is the option to fix it.


    i would prefer the first option – but if you have a shorter menu Always might also be a good way

    in reply to: Why is this code not working #1267705

    Try:

    #top.postid-3540 h2 {
       margin-bottom: 800px!important;
    }

    heading-tags and p-tag and body and div do not have a dot in front – i hope it is only 80px ;)

Viewing 30 posts - 4,561 through 4,590 (of 11,513 total)