Adding title to cms footer blockHow can i rewrite TierPrice Block in Magento2Magento 2.0.7 - Understanding the different block classes?Magento 2 - Set a custom external link in footerHow to add CMS directive block on custom module field in Magento 2How can I have a footer with 3 blocks of links?Why is the content showing in my footer links on the page different then what the admin content block shows?GENERATE THIS REPORT: main.INFO: Cache file with merged layout: LAYOUT_adminhtml_STORE1_Move/Push page.main.title block into Breadcrumbs Magento2Customize magento2 default footer linksMagento 2 : How to move the search box next to logo title [SOLVED]
Do I need to be legally qualified to install a Hive smart thermostat?
Did Snape really give Umbridge a fake Veritaserum potion that Harry later pretended to drink?
My players like to search everything. What do they find?
How frequently do Russian people still refer to others by their patronymic (отчество)?
How to travel between two stationary worlds in the least amount of time? (time dilation)
Did Stalin kill all Soviet officers involved in the Winter War?
Interview Question - Card betting
I turned off BitLocker encryption on my 5TB drive and now it continues to decrypt for days!
How do both sides know the MTU
Why did moving the mouse cursor cause Windows 95 to run more quickly?
What is the maximum amount of diamond in one Minecraft game?
How to respond to someone who condemns behavior similar to what they exhibit?
Motorcyle Chain needs to be cleaned every time you lube it?
How to improve the size of cells in this table?
Is it possible that Curiosity measured its own methane or failed doing the spectrometry?
3D nonogram – What's in the box?
how to convert Timestring to seconds
AB5E type molecule
What does the ash content of broken wheat really mean?
How to figure out layers of the atmosphere?
Park the computer
Why would "dead languages" be the only languages that spells could be written in?
Is it bad to suddenly introduce another element to your fantasy world a good ways into the story?
Taking advantage when the HR forgets to communicate the rules
Adding title to cms footer block
How can i rewrite TierPrice Block in Magento2Magento 2.0.7 - Understanding the different block classes?Magento 2 - Set a custom external link in footerHow to add CMS directive block on custom module field in Magento 2How can I have a footer with 3 blocks of links?Why is the content showing in my footer links on the page different then what the admin content block shows?GENERATE THIS REPORT: main.INFO: Cache file with merged layout: LAYOUT_adminhtml_STORE1_Move/Push page.main.title block into Breadcrumbs Magento2Customize magento2 default footer linksMagento 2 : How to move the search box next to logo title [SOLVED]
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I added a second footer block with links by adding the following code to my default.xml in my theme: (app/design/frontend///Magento_Theme/layout/default.xml)
<referenceContainer name="footer">
<block class="MagentoFrameworkViewElementHtmlLinks" name="footer_links_custom">
<arguments>
<argument name="css_class" xsi:type="string">footer links</argument>
</arguments>
</block>
</referenceContainer>
<referenceBlock name="footer_links_custom">
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="2custom-link">
<arguments>
<argument name="label" xsi:type="string">Custom Links</argument>
<argument name="path" xsi:type="string">page-url</argument>
</arguments>
</block>
</referenceBlock>
What is the easiest way to add a title to the my footer_links_custom block, is there any way to do this in a simple manner? I've tried setting an argument "title" but that didn't work obviously. Is there any way we can know all the attributes there are for a certain block? (css_class, label, path, ...) Is there no .phtml file for the footer links block?
Magento 2 leaves me behind with a lot of questions... Thanks for the help!
magento2 footer
add a comment |
I added a second footer block with links by adding the following code to my default.xml in my theme: (app/design/frontend///Magento_Theme/layout/default.xml)
<referenceContainer name="footer">
<block class="MagentoFrameworkViewElementHtmlLinks" name="footer_links_custom">
<arguments>
<argument name="css_class" xsi:type="string">footer links</argument>
</arguments>
</block>
</referenceContainer>
<referenceBlock name="footer_links_custom">
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="2custom-link">
<arguments>
<argument name="label" xsi:type="string">Custom Links</argument>
<argument name="path" xsi:type="string">page-url</argument>
</arguments>
</block>
</referenceBlock>
What is the easiest way to add a title to the my footer_links_custom block, is there any way to do this in a simple manner? I've tried setting an argument "title" but that didn't work obviously. Is there any way we can know all the attributes there are for a certain block? (css_class, label, path, ...) Is there no .phtml file for the footer links block?
Magento 2 leaves me behind with a lot of questions... Thanks for the help!
magento2 footer
add a comment |
I added a second footer block with links by adding the following code to my default.xml in my theme: (app/design/frontend///Magento_Theme/layout/default.xml)
<referenceContainer name="footer">
<block class="MagentoFrameworkViewElementHtmlLinks" name="footer_links_custom">
<arguments>
<argument name="css_class" xsi:type="string">footer links</argument>
</arguments>
</block>
</referenceContainer>
<referenceBlock name="footer_links_custom">
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="2custom-link">
<arguments>
<argument name="label" xsi:type="string">Custom Links</argument>
<argument name="path" xsi:type="string">page-url</argument>
</arguments>
</block>
</referenceBlock>
What is the easiest way to add a title to the my footer_links_custom block, is there any way to do this in a simple manner? I've tried setting an argument "title" but that didn't work obviously. Is there any way we can know all the attributes there are for a certain block? (css_class, label, path, ...) Is there no .phtml file for the footer links block?
Magento 2 leaves me behind with a lot of questions... Thanks for the help!
magento2 footer
I added a second footer block with links by adding the following code to my default.xml in my theme: (app/design/frontend///Magento_Theme/layout/default.xml)
<referenceContainer name="footer">
<block class="MagentoFrameworkViewElementHtmlLinks" name="footer_links_custom">
<arguments>
<argument name="css_class" xsi:type="string">footer links</argument>
</arguments>
</block>
</referenceContainer>
<referenceBlock name="footer_links_custom">
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="2custom-link">
<arguments>
<argument name="label" xsi:type="string">Custom Links</argument>
<argument name="path" xsi:type="string">page-url</argument>
</arguments>
</block>
</referenceBlock>
What is the easiest way to add a title to the my footer_links_custom block, is there any way to do this in a simple manner? I've tried setting an argument "title" but that didn't work obviously. Is there any way we can know all the attributes there are for a certain block? (css_class, label, path, ...) Is there no .phtml file for the footer links block?
Magento 2 leaves me behind with a lot of questions... Thanks for the help!
magento2 footer
magento2 footer
asked May 12 '16 at 9:09
JensBourgeoisJensBourgeois
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can add container div, css class using below code.
If you want to give title of block you need to add a phtml file as shown in below code:
<referenceContainer name="footer">
<container name="cms_footer_links_cs_container" title="CMS Footer Links" htmlTag="div" htmlClass="links">
<block class="MagentoThemeBlockHtmlFooter" name="footer_link_title" template="html/customlinkfooter.phtml"/>
<block class="MagentoFrameworkViewElementHtmlLinks" name="footer_links_custom">
<arguments>
<argument name="css_class" xsi:type="string">footer links</argument>
</arguments>
</block>
</container>
</referenceContainer>
<referenceBlock name="footer_links_custom">
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="2custom-link">
<arguments>
<argument name="label" xsi:type="string">Custom Links</argument>
<argument name="path" xsi:type="string">page-url</argument>
</arguments>
</block>
</referenceBlock>
Create file add title in app/design/frontend/Magento_Themecustom/templates/html/linkfooter.phtml
<div>
<span><?php echo "Custom Links"; ?></span>
</div>
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f115048%2fadding-title-to-cms-footer-block%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can add container div, css class using below code.
If you want to give title of block you need to add a phtml file as shown in below code:
<referenceContainer name="footer">
<container name="cms_footer_links_cs_container" title="CMS Footer Links" htmlTag="div" htmlClass="links">
<block class="MagentoThemeBlockHtmlFooter" name="footer_link_title" template="html/customlinkfooter.phtml"/>
<block class="MagentoFrameworkViewElementHtmlLinks" name="footer_links_custom">
<arguments>
<argument name="css_class" xsi:type="string">footer links</argument>
</arguments>
</block>
</container>
</referenceContainer>
<referenceBlock name="footer_links_custom">
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="2custom-link">
<arguments>
<argument name="label" xsi:type="string">Custom Links</argument>
<argument name="path" xsi:type="string">page-url</argument>
</arguments>
</block>
</referenceBlock>
Create file add title in app/design/frontend/Magento_Themecustom/templates/html/linkfooter.phtml
<div>
<span><?php echo "Custom Links"; ?></span>
</div>
add a comment |
You can add container div, css class using below code.
If you want to give title of block you need to add a phtml file as shown in below code:
<referenceContainer name="footer">
<container name="cms_footer_links_cs_container" title="CMS Footer Links" htmlTag="div" htmlClass="links">
<block class="MagentoThemeBlockHtmlFooter" name="footer_link_title" template="html/customlinkfooter.phtml"/>
<block class="MagentoFrameworkViewElementHtmlLinks" name="footer_links_custom">
<arguments>
<argument name="css_class" xsi:type="string">footer links</argument>
</arguments>
</block>
</container>
</referenceContainer>
<referenceBlock name="footer_links_custom">
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="2custom-link">
<arguments>
<argument name="label" xsi:type="string">Custom Links</argument>
<argument name="path" xsi:type="string">page-url</argument>
</arguments>
</block>
</referenceBlock>
Create file add title in app/design/frontend/Magento_Themecustom/templates/html/linkfooter.phtml
<div>
<span><?php echo "Custom Links"; ?></span>
</div>
add a comment |
You can add container div, css class using below code.
If you want to give title of block you need to add a phtml file as shown in below code:
<referenceContainer name="footer">
<container name="cms_footer_links_cs_container" title="CMS Footer Links" htmlTag="div" htmlClass="links">
<block class="MagentoThemeBlockHtmlFooter" name="footer_link_title" template="html/customlinkfooter.phtml"/>
<block class="MagentoFrameworkViewElementHtmlLinks" name="footer_links_custom">
<arguments>
<argument name="css_class" xsi:type="string">footer links</argument>
</arguments>
</block>
</container>
</referenceContainer>
<referenceBlock name="footer_links_custom">
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="2custom-link">
<arguments>
<argument name="label" xsi:type="string">Custom Links</argument>
<argument name="path" xsi:type="string">page-url</argument>
</arguments>
</block>
</referenceBlock>
Create file add title in app/design/frontend/Magento_Themecustom/templates/html/linkfooter.phtml
<div>
<span><?php echo "Custom Links"; ?></span>
</div>
You can add container div, css class using below code.
If you want to give title of block you need to add a phtml file as shown in below code:
<referenceContainer name="footer">
<container name="cms_footer_links_cs_container" title="CMS Footer Links" htmlTag="div" htmlClass="links">
<block class="MagentoThemeBlockHtmlFooter" name="footer_link_title" template="html/customlinkfooter.phtml"/>
<block class="MagentoFrameworkViewElementHtmlLinks" name="footer_links_custom">
<arguments>
<argument name="css_class" xsi:type="string">footer links</argument>
</arguments>
</block>
</container>
</referenceContainer>
<referenceBlock name="footer_links_custom">
<block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="2custom-link">
<arguments>
<argument name="label" xsi:type="string">Custom Links</argument>
<argument name="path" xsi:type="string">page-url</argument>
</arguments>
</block>
</referenceBlock>
Create file add title in app/design/frontend/Magento_Themecustom/templates/html/linkfooter.phtml
<div>
<span><?php echo "Custom Links"; ?></span>
</div>
answered May 12 '16 at 10:22
Prashant ValandaPrashant Valanda
10.1k1 gold badge26 silver badges58 bronze badges
10.1k1 gold badge26 silver badges58 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f115048%2fadding-title-to-cms-footer-block%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown