Forum Replies Created

Viewing 30 posts - 4,531 through 4,560 (of 11,984 total)
  • Author
    Posts
  • in reply to: Date appearance in text box #1300260

    Test this on your site – if it is what you like to have:
    (in child-theme functions.php)

    function open_popup_and_show_date(){
    ?>
    <script type="text/javascript">
    (function($) {
    	$(document).ready(function(){     
    		$('.pum-trigger').one('click', function(){
    			var today = new Date();
    			var dd = ("0" + today.getDate()).substr(-2);
    			var mm = today.getMonth()+1;
    			var monthNames = ["Januar", "Februar", "März", "April", "Mai", "Juni","Juli", "August", "September", "Oktober", "November", "Dezember"];
    			var MM = monthNames[mm-1]; 
    			var yyyy = today.getFullYear();
    			var hour = today.getHours();
    			var minutes = ("0" + today.getMinutes()).substr(-2);
    			var seconds = ("0" + today.getSeconds()).substr(-2);
    			var now = dd + ". " + MM + " " + yyyy+ " — ";
    			$(this).prepend(now);  
    		});
     	});
    })(jQuery);	       
    </script>
    <?php
    }
    add_action('wp_footer', 'open_popup_and_show_date');

    You still need to replace the month names with the equivalents in your local language
    on var now you can insert like on my testpage the time

    you see in the code there is only a : .one('click', is only will do that once – another click will do nothing on the same link

    if you got this structure:
    <span class="test pum-trigger" style="cursor: pointer;"><span class="lastClick"></span>Telmore gennemfører en prisændring på kunder</span>
    we can have everytime you click a newly inserted date ( – but that would only be important if you got time in that date too )

    See here some Info on date and javascript: https://www.w3schools.com/jsref/jsref_obj_date.asp

    in reply to: Date appearance in text box #1300205

    you mean this date in the box:

    if the lightbox is opend – the date in the box should be inserted of the current date.
    So if you see my – test page click on the button- a lightbox is opend – and the current date is shown under the button in the box.
    you don’t want to have the date in the lightbox added but in the source box where the link is clicked?

    in reply to: Date appearance in text box #1299991

    no – i’m participant as you so no private content for me – and with the other subject I did not mark them down. – Sorry

    is it something like this:
    https://webers-testseite.de/iconbox-with-popup/

    in reply to: Date appearance in text box #1299979

    Show me the page it concerns

    in reply to: Theme Fehler / Theme Bug #1299967

    na dann geb ich mal meinen Senf dazu: zunächst hast du ja die aktuellen Versionen : warum hast du dann jQuery Migrate noch aktiv?
    Welche php Version hast du für die Seite bei deinem Provider gewählt?
    Für mich hören sich dort einige Fehler dananch an, dass eventuell plugins nicht aktuell sind und mit jQuery 3.5.1 nicht kompatibel sind.

    Hast du Einträge in der child-theme functions.php ? – Wenn ja – schau bitte ob dort benutzt wird:
    $(window).load(function () {
    oder
    .click(function(){

    beides muss ersetzt werden, da nicht mehr gülitig in jQuery 3.5.1
    $(window).on("load", function () {
    und
    .on("click", function (){

    PS:
    Die einzige Fehlermeldung die hier in den Developer tools noch angezeigt wird ist die mit den entypo-fontello schriften.

    Eventeull ersetzt du mal komplett den enfold Ordner via ftp. wie zB hier beschrieben: https://kriesi.at/support/topic/some-hints-and-advice-to-update-enfold/#post-1056107

    nächste Idee: hast du in der htaccess Datei eventuell Extra Security Headers gesetzt?
    ich habe zB auch teilweise Content-Security-Policy einträge. Dort muss man ganz schön aufpassen keine Quellen zu blockieren, die man benötigt für die Seite. Poste doch mal den Inhalt der htaccess datei.( bitte nutze den code tag beim einsetzen)

    in reply to: Magnificent popup is not a function #1299902

    well – that happens occasionally – but it must have taken a mod to make you believe it. ;)

    in reply to: Image in sidebar latest news widget #1299864

    Or – by the way : you can use a filter to redefine the source for those images
    you can do that box wise:
    f.e. these widgets will use instead the square images ( 180px x 180px )

    function my_avf_newsbox_image_size( $image_size, array $args, array $instance ){
      if( $args['widget_id'] == ( 'portfoliobox-3' || 'newsbox-2' || 'newsbox-4' ) ){
        $image_size = 'square';
      }
      return $image_size;
    }
    add_filter( 'avf_newsbox_image_size', 'my_avf_newsbox_image_size', 10, 3 );

    the only rule i see in your css that has a large min-width setting is:

    @media only screen and (min-width:1800px) {
    	.responsive.html_stretched .av-masonry-col-flexible .av-masonry-entry,
    	.responsive.html_av-framed-box .av-masonry-col-flexible .av-masonry-entry {
    		width: 16.6%
    	}
    	.responsive.html_stretched .av-masonry-col-flexible .av-masonry-entry.av-landscape-img,
    	.responsive.html_av-framed-box .av-masonry-col-flexible .av-masonry-entry.av-landscape-img {
    		width: 33.2%
    	}
    }

    but that does not influence your cottages page.
    i always have on your cottages page on larger screens a 4 column layout – and only under 990px it is a 3 column layout.

    if you like to have that only in dependency of the scroll direction – Mikes Demo will do the job ( only some responsive adjustments had to be done )

    may i see your site?
    ____________
    if you have a shrinking header – and an overlapping logo – you can use these two classes added on the header id. ( header-scrolled and header-scrolled-full)
    See for example that page here: https://webers-testseite.de/header-im-off/
    My header is set to a custom height of 140px – the relative height of the logo is the guarantee that the logo will follow the shrink amount.
    my logo on that page is set to :

    #top.page-id-39906 .logo a {
      max-height: 210px !important;
      height: 150%;
    }
    #top.page-id-39906 .logo, 
    #top.page-id-39906 .logo a {
      overflow: visible;
    }

    so it is overlapping the header with 50% of its height
    on normal shrink factor of 1/2 the logo will end on a height of 105px – my header_meta is set to scroll away – that will cause a margin-top of -33.5px
    when this point is reached the class : header-scrolled-full is added.
    From now on the header had to get a margin of 105+33.5 = 138.5px – so my solution is:

    #top.page-id-39906 #header.header-scrolled-full {
      margin-top: -138.5px !important;
      transition: margin-top 1s ease;
    }
    
    #top.page-id-39906 #header.header-scrolled {
      transition: margin-top 1s ease !important;
    }
    in reply to: Magnificent popup is not a function #1299330

    Please report what it actually was, because I already mentioned all the usual suspects above.

    in reply to: Flex columns on 2/5+1/5+1/5+1/5 #1299200

    in addition to that above – you can even set an order number for responsive case:
    https://css-tricks.com/snippets/css/a-guide-to-flexbox/ : see on the right side there are the flex-item properties.

    may i see that page?
    I can’t manage to recreate this in my enfold.

    one important point is the included jQuery Version – which is now 3.5.1
    The New Enfold 4.8.2 will run under these conditions. But if you are running a child-theme with a few functions.php snippets inside – it will be important to look if you have some functions in it with:

    $(window).load(function(){
    // which is now deprecated and should be replaced by:
    $(window).on('load', function(){
    
    // and same thing here - the 
    .click(function(){
    // now replaced by:
    .on('click', function(){

    i would try on a page where you have a good backup the way i’m talking above with dashboard and uploading the installable zip file of enfold.
    This is probably the most time saving way.
    The other way via ftp upload is the safest way, because you still have that rollback then.

    in reply to: Adding Leaving Notice Message to external link #1299027

    yes – and it costs only a few minutes to test it yourself – no hidden self-destruct button inside the code ;)

    in reply to: Magnificent popup is not a function #1299012

    and by the way – you load that custom ( inline popup ) script in the head section – not the footer.
    You had to be sure that jquery and magnific popup script loads before this.
    That could be one reason for “is not a function” – but the main point here is that the script itself ( magnific popup script ) isn’t loaded.

    no private massage for me – so i’m out of support here.

    in reply to: Absolutely bad speed values #1298952

    on Performance this will be important – the Structure value is on this more important.
    But you are talking about speed on top.

    I got performance ratings on one page between 66% and 96% ( C to A) – but the structur value stays nearly the same 87% – 97%.

    in reply to: Blog Element – Move Date Under Excerpt #1298941

    you have choosen to load the jQuery script in the footer ( Enfold Options – Performance – “Load jQuery in your footer” )

    so when i inspect your DOM i can see that my script is loaded before the jquery script is loaded !

    so the jQuery in my script refers to something that is not yet there.
    _________

    You can do now: change the fact that jQuery is loaded in the footer
    or try to load the custom script later

    try first:

    function ava_move_meta_after_title(){ 
    ?>
    <script>
    (function($){
    	$('.slide-entry').each(function() {
    		var metaInfo = $(this).find('.slide-meta');
    		var postTitle =  $(this).find('.entry-content-header');
    		postTitle.insertAfter($(metaInfo));
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_move_meta_after_title', 999 );

    the 999 is called priority – you can see here some info: https://developer.wordpress.org/reference/functions/add_action/

    _____________________

    yes — your code then will be ok if you like to bring the date under the excerpt. – but use a priority

    • This reply was modified 4 years, 9 months ago by Guenni007.
    in reply to: Adding Leaving Notice Message to external link #1298887

    first : one thing to mention – on new jQuery 3.5.1 – some of the functions are deprecated.
    You had to use.on('load', function() and .on('click', function ()
    and use instead return confirm ()

    so code will be:
    i tested it without $(window).on( 'load' , (function(){
    if it does not work – try then with it ( do not forget the closing brackets )

    maybe this will be enough for you to show:

    function add_custom_script(){
    ?>
    <script>
    (function($){
    	$('.external-link a').on('click', function () {
    		return confirm('Are you sure?');
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');
    • This reply was modified 4 years, 9 months ago by Guenni007.

    And your WordPress Version is ?
    ( maybe read here : https://wptavern.com/after-11-years-users-will-be-able-to-update-themes-and-plugins-via-a-zip-file )
    Since WP 5.7 you can Update via Dashboard on : Appearance – Themes : “Add New” – “Upload Theme” – then insert the new Enfold.zip file ( be sure it is the installable zip file only ) – and click “Install Now”
    This Wordprss will recognize that it is an always installed Enfold and will ask what to do with the older one.
    You can click : “Replace”.

    On former times there was that liitle Plugin “Update Theme and Plugins from Zip File” that offers this feature – but now WordPress has implemented that.

    But: – for me the safest method is and remains the way via ftp upload.

    so post your code that you entered to the footer copyright input field on enfold options.
    i guess that there are some html tags or a non closing bracket (f.e. on the nolink shortcode ) in it that causes the issue.

    My snippet from above was only intended to avoid such input errors by automatically changing the copyright year to the new year.

    • This reply was modified 4 years, 9 months ago by Guenni007.

    when i inspect your (suspected) homepage your on Enfold: 4.2.3 and WP: 5.6.3 – but even with version 4.2.3 the update step is so big that I would also recommend updating Enfold via ftp first, and then updating to WP 5.7.1.
    It is also recommended to check the php version with your provider. For me Enfold 4.8.2 and WP 5.7.1 runs stable on php8.

    3.6.1 Version concerning to? WordPress, Enfold ?
    if 3.6.1 is the version of Enfold and you now on WordPress 5.7.1 then I guess the only useful way to perform an update is via ftp.
    try this : https://kriesi.at/support/topic/some-hints-and-advice-to-update-enfold/#post-1056107
    If you are not familiar with ftp clients – see here some hints: https://kriesi.at/documentation/enfold/install-enfold-theme/#ftp-install

    on your example page – where is there a background video autoplaying ?

    Edit: i found on top of work page a background-video:
    see source-code: ( click to enlarge )

    as a cdn hosted video – it is a kind of self-hosted video. ( not a youtube nor vimeo etc. ) but html5 video.
    These videos can be played even inline on mobile devices – with autoplay option.

    see here on your mobile device: https://webers-webdesign.de/
    on my page this was a small video – so i selfhost it.
    but with bigger videos – a cdn is very helpful. – til 100mb you might use cloudinary free cdn

    test it by yourself – insert the video source of that page to your color-section background:
    https://cdn.sidlee.com/-/media/sidlee/work/hero_video/web_loop_work.mp4

    in reply to: Absolutely bad speed values #1298681

    may i see the site it is concerning?

    by the way – if you are not a registered User on gtmetrix the option will always be:
    Analysis Options: Testing in Vancouver, Canada using Chrome (Desktop) with an Unthrottled Connection.

    For me ( on German Hosters ) it is indispensable to test my site with a server near me. Since my customers tend to be local to me and I only very rarely receive orders from Vancouver. ( btw. the nearest to me is London :lol )
    The performance Ratings are totaly different on that fact only. F.e. the TTFB is influenced on that.

    in reply to: Magnificent popup is not a function #1298663

    no the point is what i said above: the magnific popup js ( jquery.magnific-popup.min.js ) is not loaded
    and there must be a reason for it. Best would be that a mod will look into your installation.

    in reply to: Blog Element – Move Date Under Excerpt #1298661

    definitly this will work too:

    function ava_move_meta_after_title(){ 
    ?>
    <script>
    (function($){
    	$('.slide-entry').each(function() {
    		var metaInfo = $(this).find('.slide-meta');
    		var postTitle =  $(this).find('.entry-content-header');
    		postTitle.insertAfter($(metaInfo));
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_move_meta_after_title');
    in reply to: Blog Element – Move Date Under Excerpt #1298660

    i prefere to write the whole script a $ instead of jQuery – makes some things easier to understand.

    try:

    function ava_move_meta_after_title(){ 
    ?>
    <script>
    (function($){
    	$('.slide-entry').each(function() {
    		var metaInfo = $(this).find('.slide-meta');
    		var postTitle =  $(this).find('.entry-content-header');
    		metaInfo.insertBefore($(postTitle));
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_move_meta_after_title');
Viewing 30 posts - 4,531 through 4,560 (of 11,984 total)