<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Submenu anchor links resolving at top of page in Safari &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 11 Oct 2025 11:45:40 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-249397</guid>
					<title><![CDATA[Submenu anchor links resolving at top of page in Safari]]></title>
					<link>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-249397</link>
					<pubDate>Tue, 14 Apr 2015 15:39:26 +0000</pubDate>
					<dc:creator>Javabass</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, on the following site: southcoastmobile.com, I have submenu items under the &#8216;Ministries&#8217; and &#8216;Connect&#8217; page. These are all links to anchors on the respective top level page, with the exception of the &#8216;Small Groups&#8217; item.  While on the respective top level page, the anchor links work just fine, however, when you click on one of the anchor links while on another page, they resolve at the top of the respective top level page.  This only seems to happen in Safari.  All links resolve at the proper anchor location in Chrome and Firefox.  WordPress, X Theme, and all plugins are up to date.  Any thoughts?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-249594</guid>
					<title><![CDATA[Reply To: Submenu anchor links resolving at top of page in Safari]]></title>
					<link>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-249594</link>
					<pubDate>Tue, 14 Apr 2015 19:22:48 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in!</p>
<p>This is a known issue in Safari. The fix is to add a forward slash <strong>&#8220;/&#8221;</strong> before the anchor tag (e.g., <strong><code>#baptism</code></strong>). For example, change this link:</p>
<pre><code>http://southcoastmobile.com/connect#baptism
</code></pre>
<p>To this:</p>
<pre><code>http://southcoastmobile.com/connect/#baptism
</code></pre>
<p>Hope this helps. 🙂</p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-250271</guid>
					<title><![CDATA[Reply To: Submenu anchor links resolving at top of page in Safari]]></title>
					<link>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-250271</link>
					<pubDate>Wed, 15 Apr 2015 14:32:40 +0000</pubDate>
					<dc:creator>Javabass</dc:creator>

					<description>
						<![CDATA[
						<p>Perfect! Thanks for the quick support!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-250279</guid>
					<title><![CDATA[Reply To: Submenu anchor links resolving at top of page in Safari]]></title>
					<link>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-250279</link>
					<pubDate>Wed, 15 Apr 2015 14:44:44 +0000</pubDate>
					<dc:creator>Nico</dc:creator>

					<description>
						<![CDATA[
						<p>Glad to hear that!</p>
<p>Let us know if you need anything else.</p>
<p>Thanks. Have a wonderful day! 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-274359</guid>
					<title><![CDATA[Reply To: Submenu anchor links resolving at top of page in Safari]]></title>
					<link>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-274359</link>
					<pubDate>Fri, 15 May 2015 13:09:59 +0000</pubDate>
					<dc:creator>richdigittl</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>I&#8217;ve got the same issue, but unfortunately the extra forward slash still doesn&#8217;t make the anchor work in Safari.</p>
<p>My website is  at digittl.com (hyperlinks to anchors are present for &#8216;Classroom CPD&#8217; and &#8216;Student Workshops&#8217;).</p>
<p>After reading advice on forums, I&#8217;ve also tried deleting the &#8216;www.&#8217; in the site URL in wordpress settings to no avail.</p>
<p>Many thanks,</p>
<p>Rich</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-274439</guid>
					<title><![CDATA[Reply To: Submenu anchor links resolving at top of page in Safari]]></title>
					<link>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-274439</link>
					<pubDate>Fri, 15 May 2015 15:55:16 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Rich,</p>
<p>Thanks for writing in!</p>
<p>Upon checking your website, I&#8217;m unable to see any anchor link in your menubar, would you mind pointing us where you have inserted an anchor link so we can take a closer look? </p>
<p>In the meantime, did you try the method we&#8217;ve provided in our earlier response: <a href="https://theme.co/x/member/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-249594" rel="nofollow">https://theme.co/x/member/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-249594</a>? </p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-274837</guid>
					<title><![CDATA[Reply To: Submenu anchor links resolving at top of page in Safari]]></title>
					<link>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-274837</link>
					<pubDate>Sat, 16 May 2015 05:05:40 +0000</pubDate>
					<dc:creator>richdigittl</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for the reply &#8211; yes I did read through your earlier suggestions but they haven&#8217;t seemed to have worked.</p>
<p>The anchor links are further down the homepage &#8211; the image buttons appear for Staff Training, Classroom CPD, Student Workshops and School Development. These each link to an anchor for the relevant section on the &#8216;Services&#8217; page.</p>
<p>Cheers</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-274844</guid>
					<title><![CDATA[Reply To: Submenu anchor links resolving at top of page in Safari]]></title>
					<link>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-274844</link>
					<pubDate>Sat, 16 May 2015 05:14:19 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Please add this in Customize -&gt; Custom -&gt; JavaScript :</p>
<pre><code>jQuery(document).ready(function($) {
  var $body                 = $(&#039;body&#039;);
  var $bodyHeight           = $body.outerHeight();
  var $adminbarHeight       = $(&#039;#wpadminbar&#039;).outerHeight();
  var $navbarFixedTopHeight = $(&#039;.x-navbar-fixed-top-active .x-navbar&#039;).outerHeight();
  var locHref               = location.href;
  var locHashIndex          = locHref.indexOf(&#039;#&#039;);
  var locHash               = locHref.substr(locHashIndex);

  function animateOffset( element, ms, easing ) {
    $(&#039;html, body&#039;).animate({
      scrollTop: $(element).offset().top - $adminbarHeight - $navbarFixedTopHeight + 1
    }, ms, easing);
  }

  $(&#039;a[href*=&quot;#&quot;]&#039;).off(&#039;click&#039;);
  $(&#039;a[href*=&quot;#&quot;]:not([href^=&quot;#&quot;])&#039;).click(function() {
    return true;
  });

  $(&#039;a[href^=&quot;#&quot;]&#039;).click(function(e) {
    $href = $(this).attr(&#039;href&#039;);
    if ( $href !== &#039;#&#039; ) {
      var $id = $href.split(&#039;#&#039;).pop();
      var $el = $(&#039;#&#039; + $id);
      if ( $el.length &gt; 0 ) {
        e.preventDefault();
        animateOffset( $el, 850, &#039;easeInOutExpo&#039; );
      }
    }
  });
});</code></pre>
<p>Hope that helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-274873</guid>
					<title><![CDATA[Reply To: Submenu anchor links resolving at top of page in Safari]]></title>
					<link>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-274873</link>
					<pubDate>Sat, 16 May 2015 06:02:11 +0000</pubDate>
					<dc:creator>richdigittl</dc:creator>

					<description>
						<![CDATA[
						<p>Hi again,</p>
<p>Thanks for the javascript coding- I pasted it into customizer but the links are still just resolving to the top of the &#8216;Services&#8217; page using safari. I did already have some custom text in the java script (to make buttons more responsive) &#8211; will that any effect the script you gave me? This is the current text in my custom javascript:</p>
<p>jQuery(document).ready(function($) {<br />
  $(&#8216;html, body&#8217;).on(&#8216;touchstart click&#8217;, function(e) {<br />
    var popover = $(&#8216;.popover&#8217;);<br />
    if ( popover.length ) {<br />
      var popoverId = popover.attr(&#8216;id&#8217;);<br />
      $(&#8216;a[aria-describedby=&#8221;&#8216; + popoverId + &#8216;&#8221;]&#8217;).removeAttr(&#8216;aria-describedby&#8217;);<br />
      popover.hide().remove();<br />
    }<br />
  });<br />
});<br />
jQuery(document).ready(function($) {<br />
  var $body                 = $(&#8216;body&#8217;);<br />
  var $bodyHeight           = $body.outerHeight();<br />
  var $adminbarHeight       = $(&#8216;#wpadminbar&#8217;).outerHeight();<br />
  var $navbarFixedTopHeight = $(&#8216;.x-navbar-fixed-top-active .x-navbar&#8217;).outerHeight();<br />
  var locHref               = location.href;<br />
  var locHashIndex          = locHref.indexOf(&#8216;#&#8217;);<br />
  var locHash               = locHref.substr(locHashIndex);</p>
<p>  function animateOffset( element, ms, easing ) {<br />
    $(&#8216;html, body&#8217;).animate({<br />
      scrollTop: $(element).offset().top &#8211; $adminbarHeight &#8211; $navbarFixedTopHeight + 1<br />
    }, ms, easing);<br />
  }<br />
$(&#8216;a[href*=&#8221;#&#8221;]&#8217;).off(&#8216;click&#8217;);<br />
  $(&#8216;a[href*=&#8221;#&#8221;]:not([href^=&#8221;#&#8221;])&#8217;).click(function() {<br />
    return true;<br />
  });</p>
<p>  $(&#8216;a[href^=&#8221;#&#8221;]&#8217;).click(function(e) {<br />
    $href = $(this).attr(&#8216;href&#8217;);<br />
    if ( $href !== &#8216;#&#8217; ) {<br />
      var $id = $href.split(&#8216;#&#8217;).pop();<br />
      var $el = $(&#8216;#&#8217; + $id);<br />
      if ( $el.length &gt; 0 ) {<br />
        e.preventDefault();<br />
        animateOffset( $el, 850, &#8216;easeInOutExpo&#8217; );<br />
      }<br />
    }<br />
  });<br />
});</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-274890</guid>
					<title><![CDATA[Reply To: Submenu anchor links resolving at top of page in Safari]]></title>
					<link>https://theme.co/archive/forums/topic/submenu-anchor-links-resolving-at-top-of-page-in-safari/#post-274890</link>
					<pubDate>Sat, 16 May 2015 07:05:04 +0000</pubDate>
					<dc:creator>Rue Nel</dc:creator>

					<description>
						<![CDATA[
						<p>Hello There,</p>
<p>Can you please check your anchor html tag? <a href="http://prntscr.com/75rh5b" rel="nofollow">http://prntscr.com/75rh5b</a> </p>
<p>There is an unclosed p tag in your page. Some of the browsers doesn&#8217;t render correctly if there are invalid html tags inside the page.</p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

