after joomla update to 10.3.1 no edit screen - Forum | JoomShaper
Solved Helix Framework

after joomla update to 10.3.1 no edit screen

Asked by hitchio 5 years ago Last activity 5 years ago

Accepted answer

Marked as the solution
Ofi Khan Staff

You can try this code in Template Options -> Custom Code -> Custom JavaScript

 jQuery(function ($) {
    $('a[href*=#]:not([href=#])').click(function () {
        if (
            location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') &&
            location.hostname == this.hostname
        ) {
            var target = $(this.hash);
            target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
            if (target.length) {
                $('html,body').animate(
                    {
                        scrollTop: target.offset().top,
                    },
                    1000
                );
                return false;
            }
        }
    });
});

11 more replies

Ofi Khan Staff

Hello hitchio

Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials.

Best regards

hitchio Asked this
5 years ago · edited

hi!
please see hidden.
i realised, it is gone after i put into the "before /head" a script
for fluid scrolling

hitchio Asked this

it is not the update. it is for sure the script i put in the header-tag. i have now tested it on another website.
the only problem is that i can't delete the script from the header because the edit tool has disappeared. where can i find the script i entered in the database so i can delete the header-tag there from mysql?
as an alternative i can only restore an old backup, then it would work again.

Ofi Khan Staff

I have taken your full site backup and removed the JavaScript code from before Head option. Please install this backup on your server and check your issue. You can follow this tutorial for installation help. If you need the JavaScript code, it is given below.

<!-- SMOOTH SCROLL -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
$(function() {
  $('a[href*=#]:not([href=#])').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
      if (target.length) {
        $('html,body').animate({
          scrollTop: target.offset().top
        }, 1000);
        return false;
      }
    }
  });
});
</script>
<!-- End of SMOOTH SCROLL -->
hitchio Asked this

thank you!!
question:
can i use this script now everywhere in helix ultimate 2.0.2 to scroll to an anchor and not jump??
without it deleting the edit tool again?

Ofi Khan Staff

You can use the JS in Template Options -> Custom Code -> Custom JavaScript and you do not need to load jQuery script tag for it.

Ofi Khan Staff

I have a humble request. It would be very kind of you if you can manage some moment to give us feedback here:

  1. JED
  2. Trustpilot
hitchio Asked this

sorry - putting the code in custom JS doesn´t work. menu is broken and css for language-switcher doesn´t work.
it has to be set before /<head>. but i´m aware to not breake the helix tool.
can you please try, if it works - thanks

hitchio Asked this

great!! this does the job! thank you very much.

Ofi Khan Staff

You are welcome. Please accept the answer that helped you. It will be then easier to find the solution for the other users with the same issue. There is a button to accept answer after each comment.

Log in to reply.