Now i get the problem, the basehref’s overiding the link so i decided to just add the permalink in the scroll link i’ve made. I’ve fixed it by using <?php echo get_permalink( $post->ID ); ?>#comments
on the link in the single.php of my theme.
Related Posts:
- WordPress Ajax always returns a 404 error
- Calling a method from functions.php on a click of a button
- Nice scroll to wordpress
- Javascript code inside “” in core WordPress files .php
- Minify HTML, CSS, JS with PHPWee?
- Slide in Panel WordPress Post
- Show post in slider
- Populate dropdown with Child Pages based on Parent Page chosen
- search and replace preword from author
- How to change redirection route to a php page for making it only accessible by logged-in members?
- Add .htm extention to a custom taxonomy
- Noscript not working as it should in wordpress site
- Add Codepen animation as Preloader to WordPress
- HTML escaping data with ajax requests
- Override user-edit.php to design own profile page
- How do i add slugs to a URL, but still redirecting to the same page
- Calling PHP Titles inside Javascript Markup
- Link to page with posts of specific type
- Replacing WordPress Icons (menu,icons32, etc)?
- Is it possible to isolate and use WordPress functions outside of wordpress
- Time Delay a URL Redirect for Specific Page
- Cascading dropdown select search based on Parent Page & Child Page
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Display WordPress search results based on the selected Sub-Category
- html form: redirect page after form completes submit function and posts data
- WordPress User Meta value variable into Google Gauge Chart
- Search bar for wp menu
- Adding HTML Code to Replace Text in PHP
- Executing php on button press
- Add other class content with reference class value
- Using Google Analytics in an enqueued JS file
- separate list of programs in html/javascript coming from php
- How to use wp_ajax_set_post_thumbnail?
- Passing a value from an input field to a php function in WordPress?
- How do I disable cache for a certain page?
- Current WordPress Page Title as Search Parameter into A Tag
- WordPress Slider is not working
- Show subcategory name selected in specific category woocoommerce
- sessionStorage saves input value in browser but it is not loaded in the form field
- Collapsible menu on post sidebar only expands and does not collapse
- Target a specific container to style on WordPress storefront theme
- scroll scrpit to particular button position to next id when click button
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- Where to find the html for WordPress site? [closed]
- I need help implement a Javascript code into the PHP file
- Trying to customize wordpress drop down categories
- Is there a better way to output HTML as a shortcode?
- Load wp_editor on button click
- Slick slider not working on wordpress
- How do I refresh a DIV content?
- Local wordpress install only shows home page, all other pages Not Found
- How do I make an HTML table from a database table?
- Modify previous and next text from pagination links
- Add a class to links in the visual editor (how to get old dialog back)
- Gutenberg Blocks doesn’t render correctly when using do_blocks
- Get post meta in enqueued js file
- Two posts in same div – WP loop
- Archive dropdown styling not applied
- Use WordPress’s Media Uploader/ Manager in non WordPress php application
- Get/Set wp.customize.previewer.previewUrl
- To echo or not to echo?
- How to make custom total price reactive in navigation
- Adding tawk.to code just before body tag on functions.php file
- How to test nonce with AJAX – Plugin development
- Creating a Multi-Level Associative Object Using AJAX
- remove wp floating submenu in wp dashboard
- Need Help Fixing My Iframes [closed]
- wp_enqueue_scripts leads to error
- Passing UTM Parameters To Modify Page In WordPress
- Open post-content in archive page in a Modal box with bootstrap
- Creating own shortcode – echoeing php variable based on JS variable
- Position banner to right of logo in header – messed up my header file
- How to separate HTML and WordPress files
- Syntax error when I try to insert my loop into an unordered list? [closed]
- Error – ‘create_function is deprecated’ [closed]
- Printing HTML codes
- trouble with page_id & highlighting current page
- wordpress admin plugin menu custom css
- wp_insert_post() with HTML tags using PHP
- Why i can’t get custom fields value or post ID via Ajax?
- How to add a rewrite endpoint to unattached media?
- How to reference PHP in Javascript
- Remove   from the_excerpt
- Accessing an API with jQuery and AJAX
- Ajaxurl suddenly not defined
- Cannot find the php_ini configuration file to find my error log to see why my code is not working
- Configure WordPress to Use Responsive Image Rendering
- HTML comment cause issue in functions.php script root
- Slug duplicates once clicking on link
- How to find and delete a menu item in php?
- Pulling Products from an API
- Call jQuery function from PHP?
- How to call a function from functions.php with ajax?
- Switch position of elements in the footer [closed]
- WordPress HTML Helper
- Trying to fix multiple category drop down
- get_option(‘admin_email’) not working in wordpress when using ajax call
- Disable Typed Parameters for JavaScript in PhpStorm? [closed]
- Losing Session ID and sessionStorage when navigating to other domains on Multisite
- Facing Problem While Running WordPress Hook For Archive, Categories, Author, Date Pages Only