Forum Replies Created
-
AuthorPosts
-
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'
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
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, 1 month ago by
Guenni007.
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.on your triggers : you have the classes ( f.e.)
popmake-21659 pum-triggeron my testinstallation i would have:
pum-trigger popmake-21659we 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);
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
hi Telmore – have a look at https://kriesi.at/support/topic/date-appearance-in-text-box/page/2/#post-1302576 – it works
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);
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.
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.
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.it correlates with scroll speed – so no animation / transition speed here.
Slower scrolling is the solutionor 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; }
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.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.
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; }
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
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, 2 months ago by
Guenni007.
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”
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; }
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.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_entrieswhen 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);
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?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/
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.but i guess that this is not the publishing date of the pupup – but the date of the page where it is placed.
i do not know ( for now ) how to change that. Still brainstormingnow try this in your child-theme functions.php:
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);
i can not see if the container of the pum-trigger will grow if the span is inserted.
after that we had to find the right cssPS : don’t know why your extra class is at the beginning – on my test installation it is after pum-trigger
try:
.pum-trigger { display: grid; } .pum-trigger .puplished { position: relative; padding: 3px 0 0; text-align: right; }
PPS: can you change one publishing date of the popup to a different one.
and place that function on your child theme functions.php after the shortcode function of the datesee here from a demo page of popupmaker:
-
This reply was modified 4 years, 1 month ago by
-
AuthorPosts