problem with anchors in custom theme
-
Hi,
I’ve created a theme following some online tutorial and I have some problems with it. My template is here: https://www.litl.michalweb.pl. The problem is that anchors placed in Sidebar don’t work on the post.
In the post my anchors look like this:
<a name="one" id="one">one</a>
and then Im creating a Link that is places in the sidebar like this:
https://litl.michalweb.pl/events#one
And the weirdest thing ( at least for me) is that it works in Chrome and a bit in IE but it doesnt want to work in Safari and FF.
Im also using some jQuery for jScrollPane and Portfolio Slideshow.I think that I made a mistake in my sidebar.php, because when I put anchors outside of this:
<?php if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?> <?php wp_list_bookmarks( 'show_description=1&limit=4&between=<br />'); ?> <?php endif; ?>
then it works.
I tried to look for the solution on the forum, google it or even placed similar question on stackoverflow bot nothing helped. Right now I have no idea what is wrong and Im not even sure which part of the code is responsible for my problem. If someone would be interested in helping me then I can put more code. I simply didnt know which part of the code might cause problems.
Thanks a lot.
Michal
- The topic ‘problem with anchors in custom theme’ is closed to new replies.