Want to show top links as "DROPDOWN" in custom theme. Trying from many days but still no success.
Have to show "Sign In/Up" Link in toplinks when customer is not logged in.
After Customer Logged In "Sign In/Up" replaced with Customer Name or Email Id with a "on hover" "DROPDOWN" having the following links in that
"My Account"
"My Orders"
"Custom Link"
"Sign Out"
Please help me out.
Reference for the above question
Best Answer
You have to create a block class to achieve that.
First of all in your module's frontend
default.xml
layout file you have to add the following codeYour block class
Then you need also to create the template file we defined in the block class and add the following code