Coding

Coding

Mathildegagnon
New Member
4 0 0

Hi, I have a problem with my coding, this appears to be mistaken!

 

<a href="{{ routes.account_url }}" class="navlink navlink--icon">
<span class="visually-hidden">{{ 'general.accessibility.my_account' | t }}</span>
{%- render 'icon-user' -%}

<a class="select-popout__option" href="/fr#" >
<span>FR</span>
<a>|</a>
</a>
<a class="select-popout__option" href="/#" >
<span>ENG</span>
</a>


</div>

Replies 3 (3)

PaulNewton
Shopify Partner
6350 582 1355

Without a better description, or a publicly accessible example for others to inspect, 

The only things that stands out is you have an anchor tag nested within another anchor tag.

Replace <a>|</a> with <span>|</span>

And make sure that final </div> has a matching <div> somewhere earlier in the code/file.

 

Good Hunting.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


Mathildegagnon
New Member
4 0 0
Hey,

Thanks for the answer. It doesn't change anything. My problem is that if I
am on a page other than the home page and I click on english or french on
the header, it redirect to the homepage automatically instead of staying on
the actual page. Also, it is supposed to be a Hamburger menu and to have
the language selection in the menu but it only appear in my french website
but without the language selector. See pictures attached;

https://myni.ca/
https://myni.ca/fr#

PaulNewton
Shopify Partner
6350 582 1355

No pictures were attached, or made it through.

 

If your editing the code already try to add the full route to those links

{% assign full_url = request.host | append: request.path %} 
{{ full_url }}

This of course will still reload the page, nor does it account for any possible javascript, or app that may be involved. Those would be advanced customizations if possible at all for your setup.

 

That last part about where and how things should appear is separate from the core issue and the description is confusing.

Regardless moving things around into other parts of the UI requires an advanced theme customization.

 

If you need this dug into and customized then contact me directly by email for services.
Please always provide context, examples: store url, theme name, post url(s) , or any further detail.
Contact Info in signature.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org