Forum Replies Created

Viewing 30 posts - 4,471 through 4,500 (of 11,916 total)
  • Author
    Posts
  • 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, 8 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, 8 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, 8 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');
    in reply to: Blog Element – Move Date Under Excerpt #1298649

    can you post a link to the page it concerns – or if you don’t want to make it public – is there a demo page that shows the issue?
    f.e.: https://kriesi.at/themes/enfold-2017/blog/blog-default/

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

    no – only header.php has some entries for lightbox use.

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

    do you have a child-theme header.php ?

    if the still from an older Enfold, this changed header.php version must be replaced by a current one.
    For this you need to know the reason for the child-theme header.php.
    In the header.php some lightbox settings are made at the very beginning.

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

    you are not using a child-theme – where did you place those snippets ?

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

    or : do you load jQuery in the footer ?
    Try to switch that ( Enfold Options: Performance : “Load jQuery in your footer” ) and load it in the header

    Edit: no i see you load it in the header …

    hm: try to switch off
    first merging of js an css on Enfold
    second all plugins

    then turn on one after the other – and reload that page – and see what might be the reason for it.

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

    that script is ok – and you changed it to on(‘load’ … that is totally correct here – because former load is now deprecated on jQuery 3.5.1

    the magnific popup js ( jquery.magnific-popup.min.js ) is not loaded – maybe a plugin that hampers loading it ?

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

    well i do not see the magnific popup script loading
    the css is loaded – but the script itself not.
    Did you mark that “Lightbox Modal Window” on theme options?

    again btw:
    you can extend this shortcode by f.e.:

    function show_date_with_shortcode() { 
      date_default_timezone_set('Europe/Berlin');
      setlocale(LC_TIME, 'de_DE.UTF-8');
      $uhrzeit = date_i18n( 'l, \d\e\n ' . get_option( 'date_format' ) . ' ' . get_option( 'time_format' ). ' \U\h\r'  );
      return $uhrzeit ;
    }
    add_shortcode( 'show-date', 'show_date_with_shortcode' );

    shortcode is then : [show-date]

    the get option is concerning to that what you have set on Dashboard – Settings – General : “Date Format” and “Time format”

    you see the timezone setting and if there must be binding words the letters had to be escaped
    f.e. on german “Uhr” for hour and “den” for the may the fourth be with you :lol

    see here in the socket: https://webers-testseite.de/pureinstall/#socket

Viewing 30 posts - 4,471 through 4,500 (of 11,916 total)