Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Comment reply brings me to the top of the page

reply comment
    • 9 years, 3 months ago frohike
      Participant

      Expired

      Hello,

      I have the same issue as this person in this topic, but there is no answer.
      When I click on Reply or when I leave a comment, I am redirected to the top (or the middle) of the page.

      Could you help me please?

      Here is the link to the blog : https://www.viamondotraductions.com/traducteur-ou-agence-de-traduction

      Thank you in advance,

    • 9 years, 3 months ago Mirela
      Participant

      Hello,

      Sorry for the late reply.
      Please send us your ftp credentials in a private reply. We can fix it for you.

      Best regards!

    • 9 years, 3 months ago frohike
      Participant

      Expired

      This reply has been marked as private.
    • 9 years, 3 months ago Mirela
      Participant

      Hello,

      Sorry but i am not able to login with these credentials. Please go to file js/main.js and find these lines:

      function scrollUpBinding(){
      	"use strict";
      	$('.scrollup').click(function(){
              $("html, body").animate({ scrollTop: 0 }, 600);
              return false;
          });
      }

      Replace with these:

      function scrollUpBinding(){
      	"use strict";
      	$('.scrollup').click(function(){
              $("html, body").animate({ scrollTop: 0 }, 600);
              e.preventDefault();
              return false;
          });
      }

      Let us know.

      Best regards!

    • 9 years, 3 months ago frohike
      Participant

      Expired

      This reply has been marked as private.
    • 9 years, 3 months ago frohike
      Participant

      Expired

      The best exemple is to click on Répondre (Respond), on a comment.

    • 9 years, 3 months ago Ruco
      Keymaster

      Hello,

      Please try this:
      Edit the file ‘tower/js/main.js’

      Find the lines:

      function codelessOnePageContent(){
      	"use strict";
      	$('.composer_content').onePageNav({
      	    currentClass: 'current-menu-item',
      	    changeHash: false,
      	    scrollSpeed: 750,
      	    scrollThreshold: 0.5,
      	});
      }

      Delete them.

      Let us know.

      best regards!

    • 9 years, 2 months ago frohike
      Participant

      Expired

      Hello Ruco,

      I’ve deleted these lines, but it didn’t solve the issue.
      You can use my FTP credentials given previously if needed.

      Thank you in advance,

    • 9 years, 2 months ago frohike
      Participant

      Expired

      Hello,

      Could you get back to me to solve this issue please?
      I’ve created this ticket 2 weeks ago. I gave you my FTP credential previously.

      Thank you in advance for your quick support.

       

    • 9 years, 2 months ago Ruco
      Keymaster

      Hello,

      We are sorry for the late response. We fixed it.

      Please add this css code at custom css box:

      #respond{
        display: block;
          float: left;
      }

      I have added a javascript code at the end of the file ‘/js/main.js’. You may need to know this change in case of theme update.

      Best regards!

    • 9 years, 2 months ago frohike
      Participant

      Expired

      Hi Ruco,

      Thank you, it works, but when the comment is published, it brings me to the top of the page (instead of the place where the comment should appear). I think this is a part of the bug because an anchor (#comment-17 for example) appears in the url after publishing.

    • 9 years, 2 months ago Ruco
      Keymaster

      Hello,

      Please edit the file ‘tower/includes/view.blog/comments.php’.

      Find the line:

      <div class="comment <?php if($depth == 1) echo 'span12'; else echo 'span11 offset1'; ?>">
                    

      Replace with:

      Best regards!

    • 9 years, 2 months ago Ruco
      Keymaster

      Hello,

      Please edit the file ‘tower/includes/view.blog/comments.php’.

      Find the line:

      <div class="comment <?php if($depth == 1) echo 'span12'; else echo 'span11 offset1'; ?>">
                    

      Replace with:

      <div id="comment-<?php comment_ID()?>" class="comment <?php if($depth == 1) echo 'span12'; else echo 'span11 offset1'; ?>">
                      

      I added a comment here https://www.viamondotraductions.com/traducteur-ou-agence-de-traduction/#comment-19 just to test it.

      Best regards!

      • This reply was modified 9 years, 2 months ago by Ruco.
    • 9 years, 2 months ago frohike
      Participant

      Expired

      Hello Ruco,

      Thank you, it works :-)

      Have a nice day,

Viewing 13 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password