Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #1189834

    Specifying a custom column link such as https://www.mydomain.com/page_name/#anchor_name will not resolve to the linked page, click is being ignored even though link href is present in HTML source code. Removing the anchor will make it work. (Latest Enfold theme and WP)

    #1189953

    Hey spectodesign,

    Where can we see and reproduce the problem you are having?

    Best regards,
    Rikard

    #1190245

    Hi,

    On https://www.spectodesign.com when you click on the “Strategy” column the column href is pointed to https://www.spectodesign.com/services/#technology. The two other columns “Creative” and “Technology” use the standard page selector and work fine.

    #1190830

    Hi spectodesign,

    Can you disable caching and minification for now?

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1190966
    This reply has been marked as private.
    #1191150

    Hi,
    When I look at your site all 3 columns link to /services/ can you link one to /services/#technology so we can see the error.
    To remove the screen reader link from the columns, Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script(){
      ?>
      <script>
    jQuery(window).load(function(){
      jQuery('a.av-screen-reader-only').remove();
      });
      </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    Best regards,
    Mike

    #1191178

    Please review the information in the private content section.

    #1191243

    Hi,
    Thank you for the feedback, I tried recreating your page on my localhost and for the column links I used:

    http://test.test/index.php/elements/
    http://test.test/index.php/elements#av_section_3
    http://test.test/index.php/elements#av_section_4

    Notice that between the page “elements” and the IDs “#av_section_4” there is no backslash just the hash tag. Please try adjusting your links like this, as this worked correctly for me.

    Best regards,
    Mike

    #1191973

    Please see my comments

    #1192279

    Hi,
    Perhaps your Permalink structure does have something to do with this, can we have an admin login to investigate? Since this is a dev site can we try different settings and disabling scripts and plugins to try to isolate this issue?

    Best regards,
    Mike

    #1194973

    Please see my comments below:

    #1195098

    Hi,
    Thank you for the login, I believe some javascript is capturing the hashtag click, I see you are using a child theme so I wonder if you have any javascript in your functions.php?
    Please enable WordPress > Appearance > Editor by removing define( 'DISALLOW_FILE_EDIT', true ); from the wp-config.php file to enable it unless your web hosting setup another way to manage this option.
    I found that changing the hashtag to something else like a question mark allowed the url to work, but it won’t go to the anchor.
    By the way you don’t seem to have a “technology” id on your /services/ page.
    Anyways, on a new install the hashtags do work correctly.

    Best regards,
    Mike

    #1195511

    Please see my comments from 3/23/2020 below:

    #1196376

    Hi,
    Thank you, I see there are many files and scripts in your child theme to go through to try to isolate the issue.
    Can we also have FTP access? I’m thinking that if I copy all of your child theme files to my localhost I will be able to reproduce your error and then I can start removing scripts and files from my localhost until it is corrected.

    Best regards,
    Mike

    #1196913

    One step closer…

    #1197645

    Hi,
    Good test, I copied your homepage to the bottom of the test page and the anchor link works, then I note that your homepage has this name “Home_feb2017” and your function.php has this reference:

    // Yoast SEO remove a page entry
    function sd_filter_wpseo_sitemap_entry( $url, $type, $object ) { 
    	// site_url( '/home_feb2017/', 'https' );
    	
    	if( ! empty( $url ) ){
    		//error_log('url: '. $url['loc']);
    		
    		if( $url['loc'] === site_url( '/home_feb2017/', 'https' ) ){
    			return "";

    So I believe that if you rename your homepage to a different name the link will work, I also believe that the reason the link is still not working when the functions.php is empty is due to your server cache.

    Best regards,
    Mike

    #1197905

    It gets better…

    #1198026

    Hi,
    So the column link works fine unless it’s on the “homepage”?
    I tested on my localhost and it works correctly even if it’s the “homepage”, strange.

    Best regards,
    Mike

    #1198142

    More…

    #1198323

    Hi,
    I tried debugging the javascript for the column and found this:
    if( (0 == url.indexOf("#")) || ((url.indexOf(link) >= 0) && (url.indexOf("#") > 0) ) ) on line 658 of \enfold\js\shortcodes.js
    Perhaps if you were to comment out the “else” function of this rule the error will be corrected. Please see the screenshots in Private Content area.
    After making this change you will need to clear your browser cache, and any other cache so the edited “shortcodes.js” will load, this can be a little tricky because the browser prefers to use the cache version of any .js file.
    Unfortunately, I’m not able to reproduce your error so I can’t test if this will help, but this is where the link with the hashtag is getting modified.

    Best regards,
    Mike

    #1198411

    avia_link_column is undefined and aborts click (start line 618)

    #1204481

    Hi,

    We are sorry for the late reply!

    We cannot find out what exactly is causing the issue from dashboard. Could you please share FTP logins of your staging site privately as well?

    Regards,
    Yigit

Viewing 22 posts - 1 through 22 (of 22 total)
  • The topic ‘Column Link not working for custom link with anchor’ is closed to new replies.