Questions tagged [cms-block]

Denotes questions related to CMS blocks.

Filter by
Sorted by
Tagged with
0
votes
1answer
417 views

How to change the position of the block in magento2.2.2

I just installed a buy-now plugin, But it affects the display of other features. How should I change it so that the buynow-button is displayed on top of product-addto-links.Please help me!!!! I don't ...
2
votes
0answers
93 views

How to get website/store id in the cms blocks/pages Magento2

I'm checking this for long time but couldn't get this.I would like to display the website id through the magento cms block/pages.Without calling it from phtml's. Thanks in Advance.
1
vote
1answer
61 views

How to call product new.phtml in admin cms home page magento 2.2.6

How to call new.phtml file in the home page admin Magento 2.2.6 version? Please check my screenshot link here http://prntscr.com/lapiu7. And also check my theme default.xml code. <referenceBlock ...
0
votes
1answer
99 views

Products Collections not loading using block in cms magento 2?

app\code\Namespace\Module\Block <?php namespace Namespace\Module\Block; class Catproduct extends \Magento\Framework\View\Element\Template { protected $_storeManager; ...
1
vote
1answer
36 views

Magento 2 | Blocks don't appear

I created a new page layout for my home page. I want it to display 3 blocks next to each other. It should look like this: I created the blocks in backend but with the below code they don't show up. ...
2
votes
0answers
93 views

How to get store currency in cms blocks in magento2

I have a CMS block which will be used in multi-currency stores. I have a content,lets say "Grab it for USD 100".Now I want this to change based on store currency selected.How can i achieve this on ...
3
votes
1answer
2k views

Magento 2 how to Load custom collection data using Ajax

I want to display modal collection data using load more Ajax functionality, currently i am display load more data using jquery & CSS. Because for now i have a limited collection data but in ...
1
vote
1answer
152 views

Cannot create static Cms block from backend

Whenever I try to create a new static block from the backend, I always get the notice "Could not save block, sorry something went wrong". Checking logs I found this exception of the violation of ...
0
votes
2answers
965 views

Get product list by ids in CMS page [ Magento 2 ]

I want to create cms page and will show products list as per given ids in admin editor.
1
vote
1answer
80 views

Adding CMS Blocks to a Products, not programatically - Magento 2

I would like to add additional information to specified products, we would like to use the block as a template where we would just need to add this block to the product content so it would appear ...
3
votes
4answers
396 views

Why my homepage doesn't display a cms block content?

I have programmatically created a CMS block, which is working fine. I've added some content into it and trying to display it in my homepage. My block identifier is this_is_a_block_identifier. I'm ...
1
vote
0answers
227 views

Magento 2: Xml layout update on block embedded in CMS page

How can I use the Layout Update XML to modify a block that's been embedded in a CMS page. I'm embedding the Magento login block into a CMS page, which works fine, but it does not show the 'Remember Me'...
0
votes
1answer
39 views

How can I dentify or select cms_blocks that are associated with certain cms_page

I am trying to pull cms blocks that belong to a certain page. i saw that blocks are stored in cms_block and pages stored in cms_page. I tried to create a query that might help me pull this data. ...
2
votes
1answer
523 views

Magento 2 : How To Add Cms Block on Home Page After Megamenu

I need to create a link from cms block to the home page to render the contents in storefront.
3
votes
4answers
304 views

Magento 2.2.5 page and block module not displaying grid and button

I just installed Magento 2.2.5 but in admin > content > page the page grid and the button are not displaying. Even in the block the same issue happens, records grid and button is not displaying. ...
0
votes
0answers
40 views

Magento 2 : Change Position of CMS BLOCK

I have a banner block and a new product widget. On store front, the banner block is displayed after new product widget. I want to banner block is displayed before new product widget. Please give me a ...
0
votes
1answer
59 views

How to display a category on my homepage?

I'm just making my own Magento website and I was wondering if it is possible to display a specific category? I have two categories and I would like to display them separately. I'm using this CMS code:...
0
votes
1answer
150 views

Content block with an argument

I have a number of products that share a lot of the same content. It is becoming increasingly difficult to keep all of the product pages updated when new products are released or changed. I would ...
0
votes
1answer
31 views

When I edit my block in Magento 2, Front-end updates but not Block?

I tried to change my HTML code in my BLOCK. The problem is when I press Save I can see the changes on the live site but my block is still showing the old code. It also returns "Something went wrong" ...
0
votes
1answer
27 views

Cant use brackets in javascript under CMS Block

let legValue = parseInt(legLenght.value); let currHeight = e.value; let numHeight = parseInt(currHeight.substring(0,3)); let optionsFound; if(legValue ==64){ ...
2
votes
2answers
763 views

Get cms block parameter in Bock Class

How can i get this "cat" parameter from my cms page block {{block class="Magento\Framework\View\Element\Template" template="Altravista_Carousel::product/carousel.phtml" cat="3"}} in my Block Class? ...
0
votes
1answer
93 views

How create a block without controller and call it in cms block

I want to show category and category images for this i have created a module and block code : namespace Hello\Brand\Block; class Brandlisting extends \Magento\Framework\View\Element\Template { ...
0
votes
2answers
3k views

Edit the default Magento2 cookie message

I would like to change the text and button value of the Mage2's default cookie policy popup. See how it looks now: https://imgur.com/a/qvqAGXb I would like it to read some different text and have a ...
2
votes
3answers
669 views

what is the difference between cms page link and cms static block. Catalog product link and catalog category link

I know about catalog new product list, and how to make them show on the home page using the widget. But am having a hard time understanding the difference between cms page link and cms static block. ...
1
vote
1answer
295 views

How to change position of Ves Brand carousel in home page Magento2

I have Magento 2.2.3 and module Ves Brand. When I add carousel with brands it appear under menu in top part of main destination. There is no settings to change it and is difficult to find reference ...
0
votes
2answers
397 views

Need Show configurable product Swatches in Home page

I need to show the Configurable Product Swatches in Home page by CMS block. Tried using -: https://github.com/zaibi099/Magento/tree/master/Pakgentors/Swatches Its working fine with XML layout, but ...
1
vote
1answer
102 views

How to get CMS block ids between dates?

Going forward with my customization I would like to get CMS blocks using a filter: My code to get the collection: $today = Mage::getModel( 'core/date' )->date( "Y-m-d" ); $collection = ...
0
votes
1answer
50 views

Cms block custom field

i add Mobile Status below is my code for cms block section it show out form section and i want to move it after status dropdown protected function _prepareForm() { $model = Mage::registry('...
1
vote
1answer
678 views

Move cms static block before Breadcrumbs in Magento 2.2 category page

I want to move cms static block before breadcrumbs. My static block name ves_element_top.
0
votes
1answer
279 views

Magento 1 : Cms Block collection

$collection = Mage::getModel('cms/block')->getCollection(); The above collection brings cms block table fields. How to add filter in these collections.
0
votes
1answer
105 views

Adding Jquery to block (Still a nooblet)

I've created a CMS block with basic HTML, but I want to add my own custom Jquery. I've been working on a timer project, I've done my own timer and the HTML and the styling are all prepared. But the ...
0
votes
1answer
652 views

Controlling main menu with static block

In my current job we control the menu from a static block. But I didn't build or edit this. I am building my own site and want to use the same feature. But i'm not a PHP Dev I did look at this ...
1
vote
2answers
609 views

How do I render a cms/blocks collection into attribute list from product tab Magento 2?

I have create an attribute and I want to render an cms blocks as attribute values in Magento 2. Please do provide some go on it and I have done research about it but no clue so far. Thanks.
1
vote
1answer
153 views

Pass array in {{block type=“core/template” template=“test/add.phtml” items='.$data.'}}

I dynamically create a cms page or I give the content the path of the block. $data is an array form. /** * @access public * @return void */ public function createCmsPageForStore($data){ $...
1
vote
0answers
30 views

What is the difference between adding CMS Static Block into CMS Page Content & Design?

What is the difference between adding CMS Static Block into CMS Page -> Content and CMS Page -> Design?
1
vote
0answers
248 views

Magento2 - How get all prices of all Blocks within HomePage?

I have working a website with others extensions between them the "Ultimo - Fluid Responsive" theme that overwrite much part of website, as well as my own extension. My question friends: I how can ...
1
vote
1answer
66 views

grid , get all stores of a block cms

I m trying to get all stores of a block cms in an adminhtml page. But something is wrong :( Here is my code : class Upecom_Brandhub_Block_Adminhtml_Grid_Grid extends ...
1
vote
1answer
473 views

Add CMS Block to Sidebar in whole magento 2 site

When I create a static page with 2columns-left layout in magento, it has the space of sidebar on the left. How can I put a static block in this sidebar so it can appear in every page with 2 columns?
2
votes
2answers
908 views

Is it possible to get system configuration value in Static block/ CMS page

I have eight static block list. Client want to change some part of string in these static block according the current month. I can achieve this though the code, but client have access only of backend, ...
0
votes
1answer
122 views

Magento content in CMS block from PHTML file

I know many people have asked this question before, but I've tried every combination I can find and I'm not succeeding, so I need some advice in case I am missing something out. I'm trying to add the ...
0
votes
1answer
273 views

How to retrieve cms block?

Deleted row from Content>Blocks then I try to add it again from previous backup but it doesn't render on the frontend. How can I solve it? Thanks
0
votes
0answers
121 views

Magento 2 : Separate cms pages with different left side bar

I want to create pages for shipping return , faqs and two others like this . But how can I add left bar to them like this ?
3
votes
1answer
669 views

How to call CMS Block via its identifier in Product edit / add page?

I want to call a CMS Block via its identifier in a product attribute to display CMS block on product page. Want to show different Static Block on different products So how can I achieve this via ...
3
votes
0answers
473 views

Magneto2 remove widget via xml in custom page

In all cms pages i use widget. How can i remove widget by id on specific CMS pages? For remove block i use: <referenceBlock name="block_name" remove="true"/>
6
votes
3answers
5k views

Get content of CMS block by identifier

I need to create a module which lets the backend user add tooltips to the products custom options. So I created a field which the user fills with the unique identifier of a cms block which contains ...
2
votes
1answer
2k views

Insert block inside static block magento 2

I create static block with reference name 'seller_registration_form' from Magento 2 backend which loaded in home page like this: Now i want to insert additional content from my module, so i created ...
0
votes
2answers
418 views

How to I show recently viewed products on magento CMS page?

Can anybody Help me with this please: frontend/{package}/{theme}/template/reports/recent-products-view.phtml I tried this below example but not working {{block type="reports/product_viewed" ...
1
vote
0answers
128 views

Sidebar next to CMS block on category page

I'm somewhat new to Magento 2 but most of it is going just fine. There is a minor issue I'm experiencing and I can't seem to figure out how I can fix this. I've added a CMS block to a category ...
1
vote
1answer
2k views

How to add a CMS Block via XML layout update in Magento 2?

In order to create custom sidebar menus for my CMS pages in Magento 1, I used to be able to create a static block, and then use a widget to place it on all CMS pages that had a 2 column layout with ...
0
votes
1answer
52 views

How do I get rid of multiple H1's on homepage?

I am relatively new to Magento with past experience of WordPress of few years. I'm trying to get rid of the multiple H1s on the homepage of a new client. sobefurniture.com The developer coded the ...