Forum Replies Created

Viewing 30 posts - 4,381 through 4,410 (of 11,878 total)
  • Author
    Posts
  • in reply to: Date appearance in text box #1302934

    we can surround the weekday by some html with a class. Those extra letters had to be escaped.

    Replace the whole code with:

    function add_date_time_popup_content( $content ) {
    	if ( ! function_exists( 'pum_get_popup_id' ) ) return;
    	$popup_id = pum_get_popup_id();
    	return "<p class='date-published'>" . get_the_date( '\<\s\p\a\n \c\l\a\s\s\=\"\w\e\e\k\d\a\y\"\> l \<\/\s\p\a\n\> \d. d.m.Y' , $popup_id ) . "</p>" . $content  ;
    }
    add_filter( 'pum_popup_content', 'add_date_time_popup_content' );
    
    function show_date_of_popup(){
    ?>
    <script type="text/javascript">	
    (function($) {
    	$(document).ready(function(){ 	  
    		$('.pum-trigger').each(function() {
    			var pumPopup = $('.pum').css('display');
    			var trigger_name = $(this).attr('class').split(' ')[0];
    			var publishingDate = $(this).closest('#top').find('#'+trigger_name+' .date-published').html();
    			var date_published = $('<span class="puplished">'+publishingDate+'</span>');
    			$(this).append(date_published);	
    		});
    	});	
    })(jQuery);	       
    </script>
    <?php
    }
    add_action('wp_footer', 'show_date_of_popup', 9999);

    and put this to quick css:

    .puplished .weekday,
    .date-published .weekday {
    	text-transform: capitalize;
    }
    in reply to: Date appearance in text box #1302932

    But this does not belong to the code i gave to you.
    What do you see if you go to dashboard – general – Date Format : if you choose custom and put in : l \d. d.m.Y on preview:
    ________

    you see here that the normal format is for Weekday a capitalized result.
    btw: you don’t want all letters uppercase – just the first one?

    in reply to: Hide Sticky Header on Single Page #1302779

    EDIT: sorry didn’t see that you like to have that as popup – so read the next Answer
    ___________________
    But if your visitors want to navigate further on your page – how do you want to offer that?

    you can place a button for instance that will go back in browser history – just place a button and give a custum-class to it: goback
    this to child-theme functions.php:

    function go_back_button(){
    ?>
    <script type = "text/javascript">
    (function($){
      $('.goback').on('click', function(e){
          e.preventDefault();
          window.history.back();
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action( 'wp_footer', 'go_back_button' );
    in reply to: Hide Sticky Header on Single Page #1302777

    You do not think about the padding-top of #main caused by a header calculation height.
    But:

    The solution is actually very simple, by not selecting the default template, but “Blank – no header no footer”.

    You open the editor for this page and right at the meta boxes you see Template.

    in reply to: Date appearance in text box #1302627

    if you like to have some binding words in that date do it this way:
    The backslash will show the code that it does not stand for the day but to have text here

    'l \d. d.m.Y'
    
    in reply to: Date appearance in text box #1302619

    But think of – you want the publishing date of the popup to show – i can see now different manual dates on that:

    https://kriesi.at/support/topic/date-appearance-in-text-box/page/2/#post-1301398

    in reply to: Date appearance in text box #1302614

    first you told me it is too long!

    Replace the part of the function above:

    function add_date_time_popup_content( $content ) {
    	if ( ! function_exists( 'pum_get_popup_id' ) ) return;
    	$popup_id = pum_get_popup_id();
    	return "<p class='date-published'>" . get_the_date( 'l, d.m.Y' , $popup_id ) . "</p>" . $content  ;
    }
    add_filter( 'pum_popup_content', 'add_date_time_popup_content' );

    that part: ‘l, d.m.Y’ is responsible for it:
    see here foramting options: https://wordpress.org/support/article/formatting-date-and-time/

    • This reply was modified 4 years, 7 months ago by Guenni007.
    in reply to: Date appearance in text box #1302610

    ok – you got it now
    But – now you have to remove in your popups the shortcode :

    <span class="date-published">[post_published]</span>
    

    if you do not want to show the published date in the popups content – you can hide it there.
    or you can shift it to the bottom of the popup content.

    in reply to: Date appearance in text box #1302607

    this in the code above

    
    var trigger_name = $(this).attr('class').split(' ')[0]

    will search for the classes – split the class list on spaces and will take the first class ( it starts at 0 )

    this is what i got on the test:
    ( click to enlarge )

    i got the id at the second position !

    in reply to: Date appearance in text box #1302606

    on your triggers : you have the classes ( f.e.)
    popmake-21659 pum-trigger

    on my testinstallation i would have:
    pum-trigger popmake-21659

    we need that popmake-21659

    so just replace the whole code by:

    // this is now the code to insert the popup publishing date - 
    // all credits goes to a guy that helped me from wp-popupmaker : Mark Chaves !
    function add_date_time_popup_content( $content ) {
    	if ( ! function_exists( 'pum_get_popup_id' ) ) return;
    	$popup_id = pum_get_popup_id();
    	return "<p class='date-published'>" . get_the_date( 'd.m.Y' , $popup_id ) . "</p>" . $content  ;
    }
    add_filter( 'pum_popup_content', 'add_date_time_popup_content' );
    
    //-----------------
    // this is the known script
    function show_date_of_popup(){
    ?>
    <script type="text/javascript">	
    (function($) {
    	$(document).ready(function(){ 	  
    		$('.pum-trigger').each(function() {
    			var pumPopup = $('.pum').css('display');
    			var trigger_name = $(this).attr('class').split(' ')[0];
    			var publishingDate = $(this).closest('#top').find('#'+trigger_name+' .date-published').text();
    			var date_published = $('<span class="puplished">'+publishingDate+'</span>');
    			$(this).append(date_published);	
    		});
    	});	
    })(jQuery);	       
    </script>
    <?php
    }
    add_action('wp_footer', 'show_date_of_popup', 9999);
    in reply to: Date appearance in text box #1302604

    yes sorry – on my testinstallation i have first the pum-trigger class than the id
    so i corrected the second code to split on [0]
    ( var trigger_name = $(this).attr('class').split(' ')[0]; this is different to my installation – you had to take the first part of the class list )

    replace it

    in reply to: Pagination #1302591
    in reply to: Date appearance in text box #1302576

    here is the solution to it:

    remove the shortcode function so that you only have on child-theme functions.php:

    
    // this is now the code to insert the popup publishing date - 
    // all credits goes to a guy that helped me from wp-popupmaker : Mark Chaves !
    function add_date_time_popup_content( $content ) {
    	if ( ! function_exists( 'pum_get_popup_id' ) ) return;
    	$popup_id = pum_get_popup_id();
    	return "<p class='date-published'>" . get_the_date( 'd.m.Y' , $popup_id ) . "</p>" . $content  ;
    }
    add_filter( 'pum_popup_content', 'add_date_time_popup_content' );
    
    //-----------------
    // this is the known script
    function show_date_of_popup(){
    ?>
    <script type="text/javascript">	
    (function($) {
    	$(document).ready(function(){ 	  
    		$('.pum-trigger').each(function() {
    			var pumPopup = $('.pum').css('display');
    			var trigger_name = $(this).attr('class').split(' ')[0];
    			var publishingDate = $(this).closest('#top').find('#'+trigger_name+' .date-published').text();
    			var date_published = $('<span class="puplished">'+publishingDate+'</span>');
    			$(this).append(date_published);	
    		});
    	});	
    })(jQuery);	       
    </script>
    <?php
    }
    add_action('wp_footer', 'show_date_of_popup', 9999);
    in reply to: Possible to nest columns? #1302571

    here are some other overlapping samples:
    https://webers-testseite.de/overlapping/
    or https://webers-testseite.de/overlap-to-followed-section/

    you see here too – that you can even use the animation of enfold for those overlapping columns.

    in reply to: Possible to nest columns? #1302567

    here is a layout made for another participant : https://webers-testseite.de/steviger/

    The Reverse Order is only to have the second column ( with that navigation in it ) on top in responsive case.

    in reply to: Lightbox Position #1302561

    die einfachste Methode funktioniert auch : im Backend – deaktivieren
    das bootstrap scheint über dein Mobile.de zu kommen. Sollte es daran liegen, musst du wahrscheinlich dann die “Krücke” verwenden.
    Denn darauf wirst du ja nicht verzichten können.

    Eine andere Idee noch: wo lädst du das jQuery ; bei Enfold gibt es ja unter Leistung die Einstellung es im Footer zu laden, was zwar eventuell die Ladezeit einer Seite verringert, aber auch zu Problemen führen kann wenn die Reihenfolgen dann nicht eingehalten werden.
    Versuch doch mal das jQuery im Header zu laden.

    in reply to: Shrinking header animation speed #1302443

    it correlates with scroll speed – so no animation / transition speed here.
    Slower scrolling is the solution

    or if you like this – maybe it is a satisfiing solution for you:

    #top #header,
    #top .av-logo-container ,
    #top #header .av-main-nav > li > a,
    .logo a, 
    .logo a img {
      transition: all 3s ease !important;
    }
    in reply to: dot in a different colour than text #1302377

    you can find here some solutions on that. https://kriesi.at/support/topic/bulleted-list-dots-quick-css/
    I could of course give more precise advice with a link to the appropriate page.

    in reply to: Lightbox Position #1302362

    Different Approach
    Wenn wir die Pfeile innerhalb des content containers setzen laufen Sie ja mit der Verschiebung.
    Dazu müsstest du dies hier in die child-theme functions.php setzen:

    function popup_arrows_change() { 
    ?>
    <script type="text/javascript">
    (function($){
    $(window).on('load', function(){
        $('.av-masonry-entry.lightbox-added').magnificPopup({ 
    	    type: 'image',
    	    mainClass: 'avia-popup mfp-zoom-in mfp-image-loaded',
    	    closeOnContentClick: false,
    	    midClick: true,
    
    	    gallery: {
    	      enabled: true
    	    },
    
    	    callbacks: {
    	      buildControls: function() {
    	        // re-appends controls inside the main container
    	        this.arrowLeft.appendTo(this.contentContainer);
    	        this.arrowRight.appendTo(this.contentContainer);
    	      },
    	    },
    
      	}); 
    });
    })(jQuery);
    </script>
    <?php }
    add_action('wp_footer', 'popup_arrows_change');

    und das ins quick css:

    .mfp-arrow {
      margin: 0 -90px;
      margin-top: -55px;
    }
    
    .mfp-arrow:active {
        margin-top: -55px;
    }

    ABER: Wichtiger – richtiger wäre den Fehler zu finden.

    in reply to: Lightbox Position #1302355

    Eventuell musst du die Einstellungen noch auf !important setzen, wenn es nicht auch so funktioniert:
    Leider ist das nicht responsive – da absolute Werte. Das ist ja das geniale vorher , dass es die Teile auf die Hälfte der errechnenten Höhen setzt.
    Nur sind diese bei dir viel zu hoch – ein script oder ein Script eines Plugins wird das wohl veranlassen.
    Hast du probiert die Plugins so wie oben beschrieben auszutesten?

    .mfp-arrow {
        top: 350px;
        margin-top: 0;
    }
    
    .mfp-arrow:active {
        margin-top: 0;
    }
    in reply to: Menü Beschreibung/ Menu Description #1302227

    welche Header Variante hast du gewählt?
    bei normalen Header ( Logo im Kopfzeilenbereich – unter Enfold – Allgemeines Layout – “Logo und Hauptmenü” ) – sind die ausgeblendet:

    .avia-menu-subtext {
    	display:none;
    }

    wenn du die auf display : block setzt, werden sie angezeigt. – Die musst du dann nur noch stylen, denn viel platz ist ja nicht da.
    Ist aber bei z.B. einem shrinking header nicht trivial !

    Das ist eigentlich so wie Rikard oben schon anmerkte mit dem Link – nur bei “Sidebar links oder rechts” gedacht

    in reply to: Menü Beschreibung/ Menu Description #1302202

    Wenn ihr im Dashboard – Menüs seid, dann ist ganz oben am Fenster ein Flyout Menu zu finden Der Button heißt: “Ansicht anpassen” den mal bitte drücken.
    In dem flyout dann wählen, was angezeigt werden soll.
    Hier findet sich auch “Beschreibung” und die CSS Klassen für einzelne Menupunkte

    • This reply was modified 4 years, 7 months ago by Guenni007.
    in reply to: Lightbox Position #1302192

    Please switch off the merging of the js and css files anyway, then it will be easier for us to find the possible errors in the css.

    Enfold (Child) – Leistung – “…Datei-Zusammenführung und -Komprimierung”

    in reply to: Lightbox Position #1302190

    yes – there is just this calculation to determine the middle of the height. And these heights that are calculated are much too high on your lightboxes.
    You could now set the position to top to make it temporarily visible.

    My assumption is therefore that a plugin is involved here.
    Therefore, I would first test now: Turn off all plugins and also turn off the merging. Then check if the lightbox works.
    If yes – activate the plugins again step by step, and check each time when this miscalculation takes place. Possibly then the causer shows up.

    Or: What I also noticed is that you have all the latest versions, but still have jQuery Migrate enabled. Try turning that off. ( in the options of Enfold – Performance).

    If we don’t find a solution with this, you can temporarily make this setting in Quick css:

    .mfp-content {
        vertical-align: top !important;
    }
    in reply to: Lightbox Position #1301935

    zudem musst du unbedingt etwas an deinen DSGVO Einstellungen ändern.
    Ohne dass ich auf deiner Seite etwas geantwortet habe – oder schlimmer noch indem ich nur notwenigen Cookies zustimmte, wird google analytics und google tag manager geladen ( schrift lato ohnehin auch )
    Wenn unsere Kollegen hier aus dem internationalen Ausland das machen ok, aber wir in Deutschland ( oder EU ) müssen uns daran streng halten ohne Opt-In hier nichts zuzulassen.
    Deine Seite ist höchst abmahn-gefährdet deshalb.

    in reply to: Change "Archive For: " for custom type #1301930

    That was exactly what I suspected, that you had not correctly determined the taxonomy of your CPT, hence why I wrote: if it is as you suspect: publication_post.
    on post-type : portfolio it is portfolio_entries

    in reply to: Change "Archive For: " for custom type #1301761

    when you hover on dashboard your CPT “Categories” what is shown on your browser for taxonomie as you can see here by portfolio:

    this is the analogon in your code above – if it is as you suspect: publication_post
    try:

    function avf_change_which_archive($output){
    	$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
    		if(is_tax('publication_post')){
    			$output = __('Search for:','avia_framework')." ".$term->name; 
    		} 
    		else {
    			$output = __('Archive for:','avia_framework')." ".$term->name; 
    		}
    	return $output;
    }
    add_filter('avf_which_archive_output','avf_change_which_archive', 10, 3);
    in reply to: Lightbox Position #1301703

    Da gibt es für mich einige Unstimmigkeiten in deinem Quellcode – warum gibt es ein bootstrap.css ?
    irgendwo wird für mfp-wrap oder das img in der Lightbox auf eine immense Höhe gesetzt, die wesentlich größer ist als es normalerweise im magnific Popup passiert. Leider kann ich dir nicht mehr sagen. Eventuell ein eigenes magnific popup script?

    in reply to: Date appearance in text box #1301517

    Till a solution is found you can place the publishing date manually to your popups as:

    
    <span class="date-published">xx.xx.2021</span>

    The date will than be inserted automatically to your list.

    See here : https://wordpress.org/support/topic/echo-get_the_date-in-popup-window/

    in reply to: Date appearance in text box #1301472

    Now let’s check the feasibility first, and then do the styling.
    if you takte this as shortcode :

    function shortcode_for_publishing_date_of_posts(){
     	return get_the_date( 'd.m.Y', get_the_ID($post->ID) );
    }
    add_shortcode( 'post_published', 'shortcode_for_publishing_date_of_posts' );

    but it is alway the publishing date of the page where the popup is placed

    but there must be a possibility, because when I look at a blog page from Enfold, there is also the publishing time of the single blog page displayed and not that of the blog page.
    I hope a mod can answer this question, because I have to take care of my business now.

Viewing 30 posts - 4,381 through 4,410 (of 11,878 total)