2 Comments

What are the possible Argument Namespaces for Logos

Different checkout pages on multistore
Magento 2 product import won't import images

I am tweaking my theme using the xml approach.

I have this xml code:

<referenceBlock name="logo">
    <arguments>
        <argument name="logo_file" xsi:type="string">images/my-override-logo.png</argument>
        <argument name="logo_img_width" xsi:type="number">160</argument>
        <argument name="logo_img_height" xsi:type="number">240</argument>
        <argument name="logo_img_alt" xsi:type="string">Alt string for SEO and Accessibility purposes</argument>
    </arguments>
</referenceBlock>

My alt string is not correctly coded because I can’t get the alt attribute string to render to the page. Any suggestions?

Related Posts

  • What are all the allowed `xsi:type` values in the xml's from Magento2 (2)
    In Magento 2 (almost) all arguments listed in xml files have an attribute xsi:type that determine how the value of the argument is iterpreted. For example, in di.xml file of the backend module there is this: <argument name="scopeType" […]
  • Magento 2 – How to reset XML block arguments such as CSS (1)
    I'm wondering how to unset CSS that has been set through the XML, for example: <block class="MagentoFrameworkViewElementTemplate" name="navigation.sections" before="-" template="Magento_Theme::html/sections.phtml"> <arguments> <argument name="group_name" […]
  • Add findologic promotions to search results page (0)
    Im not very experienced in magento. Im trying to add "promotions" by findologic to the search results page. There isnt really a good tutorial for this, it seems like I have to check their xml return for some string. The question is, how exactly to i do this ? Where do I have access […]
  • Site Logo Missing under SSL (2)
    Under System > Configuration > General > Design > Header > Logo Image Src with http the following worked perfectly: images/media/my_shiny_logo.png However, after successfully activating SSL (setting secure Base URL to https://www.example.com/) everything except the site logo works […]
  • Site Logo Missing under SSL (2)
    Under System > Configuration > General > Design > Header > Logo Image Src with http the following worked perfectly: images/media/my_shiny_logo.png However, after successfully activating SSL (setting secure Base URL to https://www.example.com/) everything except the site logo works […]
  • Remove mulitipul H1 Tags from Homepage (2)
    I was checking for H1 tags on my home page and found that i have 3. 1 is from the logo which i believe is acceptable for Seo. There are two others, one is the category-title and i dont know where the 3rd comes from. Firstly how can i change the homepage category title Tag H1 to […]
  • Remove mulitipul H1 Tags from Homepage (2)
    I was checking for H1 tags on my home page and found that i have 3. 1 is from the logo which i believe is acceptable for Seo. There are two others, one is the category-title and i dont know where the 3rd comes from. Firstly how can i change the homepage category title Tag H1 to […]
  • getAttributeText in a safe way / test if attribute exist in product first (4)
    If I call getAttributeText on a non existing attribute, eg: $product->getAttributeText('some-non-existing-field'); I get the fatal error: Fatal error: Call to a member function getSource() on a non-object Which I can't even try-catch because its fatal. Different magento […]
  • getAttributeText in a safe way / test if attribute exist in product first (4)
    If I call getAttributeText on a non existing attribute, eg: $product->getAttributeText('some-non-existing-field'); I get the fatal error: Fatal error: Call to a member function getSource() on a non-object Which I can't even try-catch because its fatal. Different magento […]
  • Editing an Existing Theme – Locating the XML (1)
    Sorry for the beginner question but I'm completely stuck, otherwise I wouldn't ask. I'm determined to learn Magento correctly and need pointing in the right direction before I can continue. I'm editing an existing theme that was installed by another developer, I was looking to only […]
Different checkout pages on multistore
Magento 2 product import won't import images

2 Comments on this article

Add a comment

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax