I'm using Porto theme (documentation: porto doc) and i want to change to topLinks:

enter image description here

The problem is that i can't find the static block that contains those links. Or are those links inside a .phtml file? :-s

Thank you!

有帮助吗?

解决方案

Go to Admin > Port > Porto - Settings Panel > Header Type you find your selected header type.

In that selected type Header 3 for exemple you'll find : <?php echo $this->getChildHtml('topLinks'); ?>, this topLinks refers to customer.xml and that links are added via xml something like this:

<default>
    <reference name="top.links">
        <action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action>
    </reference>
</default>

To find the path's you have to enable the path hints like this.

其他提示

Generally, the top links do not come from PHTML files or static blocks.

These links appear from the layout XML files of the theme.

Below is the default place where you can find these links:

  • My Account: app/design/frontend/{your-theme-package}/{your-theme}/layout/customer.xml
  • Log In: app/design/frontend/{your-theme-package}/{your-theme}/layout/customer.xml
  • My Wishlist: app/design/frontend/{your-theme-package}/{your-theme}/layout/wishlist.xml

You can find code like below:

<reference name="top.links">
...
...
</reference>

Update: Remove Log In link from the top links:

<customer_logged_out>
        ...
        ...
        ...
        <reference name="top.links">
            <action method="addLink" translate="label title" module="customer"><label>Log In</label><url helper="customer/getLoginUrl"/><title>Log In</title><prepare/><urlParams/><position>100</position></action>
        </reference>
        <remove name="reorder"></remove>
    </customer_logged_out>

Find the code like above and either comment out or remove it from the app/design/frontend/{your-theme-package}/{your-theme}/layout/customer.xml file.

许可以下: CC-BY-SA归因
scroll top