Questions tagged [static-block]

CMS static blocks are a Magento utility that allow a site builder to make certain elements of a page editable. Elements that have been created as a static block can me modified by a site administrator through the Magento admin panel.

Filter by
Sorted by
Tagged with
1
vote
1answer
521 views

How can I change the Category Product to Static Block in magento 2

How can I change the Category Product to Static Block in magento 2 from back end? I check it in Product -> Categories and select the one category and click Display Setting then change the Display ...
1
vote
2answers
97 views

1 part of the sidebar at top, rest at bottom

Okay, so I have a sidebar in one of my CMS pages. This sidebar has 3 static blocks: a menu (accordeon on mobile devices) a contact block an USP block The HTML is roughly set up like this: <div ...
1
vote
1answer
1k views

Magento2: how to list categories in static block?

How can I list subcategories of some category in a static block? UPDATE: It seems there already is a widget available for this in Github
1
vote
3answers
2k views

Magento 2 : Call Static block wysiwyg images not using editor

Any one have idea for how to call images in Static block not using editor like {{media url="wysiwyg/demo.jpg"}}?
1
vote
1answer
218 views

Including newsletter block in a static block issue

I tried to include the newsletter block in a static block content, like: {{block type="newsletter/subscribe" name="newsletter" template="newsletter/subscribe.phtml"}} But it is not working. Can ...
1
vote
1answer
98 views

Post 6788 Variables Permissions issue, allowed variable isn't working in block

I've added "design/header/logo_src" to allowed permissions, however in a static block I've made the following call and I'm getting the skin url but not the config path: src="{{skin url="" }}{{config ...
1
vote
2answers
157 views

Block “business_term” not rendering

i try to show the business terms on a simple page but my block isn't rendering. The page which calls the block: {{block type="cms/block" block_id="business_terms"}} The block itself with the ...
1
vote
1answer
377 views

Call to a member function on a non-object in + Loop Question

I got 2 problems and I need explanation ^^ Here my structure and files : Structure : app code local company ProductFinder Block Question.php controllers ...
1
vote
1answer
771 views

In static block call .phtml file for specific product id

I have a template which uses banners on the homepage,these banners get filled by a static block like the following: <div class="col-sm-6"> <a href="{{store url=''}}women.html"> &...
1
vote
2answers
601 views

Adding single template block to multiple places

I need to add a small template into multiple places in the store: catalog, search results page, product details page. Currently in my module's layout file I have: <layout> ... <...
1
vote
1answer
612 views

Store specific url in static block

I have a multistore website in Magento CE 1.9.2.4 in which stores are differentiated in url like: http://mywebsite.com/store1 & http://mywebsite.com/store2 Now how to get the above store-...
1
vote
2answers
2k views

WYSIWYG editor in static block is deleting HTML code

I've noticed that the WYSIWYG editor, in the static block configuration, randomly deletes the HTML code inside, in my case is the image slider. I'm not sure about the reason: image size, code size, ...
1
vote
1answer
27 views

Header Help for Magento

noobie to Magento, took days for me to figure out the structure block and content block thing but I think I understand it. I created a block to hold an image but it puts a space between my logo and ...
1
vote
1answer
87 views

where are static blocks used, and what potential values in eav_attribute

I am about 3 months into Magento at this point. I have worked with static blocks core_blocks being used in a store for categories to either supplement or replace the category list. I know these are ...
1
vote
4answers
6k views

Pop-Up Email Subscription

I have a link in my static-block that says "subscribe". When users click that (and ONLY when they click that), I want a pop-up box to appear on the page that allows them to enter their email address ...
1
vote
2answers
381 views

Magento Community 1.9.1 how do I add Static Blocks to a sidebar in RWD?

The last theme I used had identifiers in the theme for placing CMS blocks into theme pages. Does RWD have existing layout identifiers I can use? or do I have to add code to my layout.xml? RWD's right ...
1
vote
1answer
519 views

Static block not visible under admin panel->cms->static blocks

I want to add a static block programmatically. The way I'm trying to do that is next: I created file data-upgrade-1.0.0-1.0.1.php (there were none other files except data-install...) inside setup ...
1
vote
2answers
1k views

CMS Static Blocks - Custom border? (custom css for curved border)

I am creating a website and I am using the CMS to create static blocks then call them in a widget however I am feeling very limited in the CSS options it gives you under "edit CSS" is there a way that ...
1
vote
1answer
1k views

how to align multiple static blocks on a cms page

I'm revamping my home page to include 4 static blocks with text content. To test my layout I've created 1 standard static block and inserted it 4 times as a widget within my CMS homepage. The problem ...
1
vote
2answers
119 views

Possible to change the layout of 1 block only? [closed]

after some searching I couldn't find an answer to my problem. I have a website with the 2coluns-left layout (and some cms pages with 1 column layout. Now I put a cms block at the bottom of my page (...
1
vote
2answers
2k views

upsell.phtml in static block = Fatal error: Call to a member function getItems() on a non-object

I'll show my category list in a static block <div>{{block type="catalog/product_list" category_id="488" template="catalog/product/list.phtml"}}</div> No problem. But now I'm try to use ...
1
vote
2answers
2k views

Position Static Block under Category Grid

I have 3 categories set up to display Static Block & Products however I would like the static block to be displayed under the category grid. As this is not for every category only a few is there a ...
1
vote
2answers
5k views

Magento product list grid mode how to remove toolbars?

I want to show 20 products on my homepage without any toolbar at the top or bottom. Currently I have this block, which shows a toolbar: {{block type="ultimo/product_list_featured" category_id="26" ...
1
vote
0answers
13 views

Show wishlist counter on header when it doesnt have items

I need to display cart and wishlist counters on my own header block. For the first one i've just modified the CSS to display block. But I can't find how the wish list counter works, so it will show 0 ...
1
vote
1answer
52 views

Set different static cms block to each different product

I have a created different CMS static blocks. I need to call the respective static block for each product. I thought of getting the URL key and then assign it to the respective Products. How could I ...
1
vote
0answers
15 views

Hide Static Block from Category View on Layer Nav Click

When I setup a category page I can set it to display products, a static block or both. I would like to display a static block but when any option in the layered nav is clicked, I would like to hide ...
1
vote
0answers
162 views

Magento 2 add CMS block under discount code section on the checkout page

I want to add third party JS code and HTML on the checkout page under discount code section. To add it under discount code first in Checkout_index_index.xml file I have added following code. <?...
1
vote
0answers
220 views

How to remove extra divs in my Page Builder CMS blocks?

While I'm saving the static block extra div's are adding to static block. How to avoid the divs in Magento 2.3? <div data-content-type="row" data-appearance="contained" data-...
1
vote
0answers
30 views

Edit dropdown attribute of Sub category

I am trying to fill-in the information of a product category in Magento v.1.9.4.1, however, I am unable to locate or figure out how to add an additional option under this "Dropdown" menu I was able ...
1
vote
0answers
56 views

How to make checkout a static block / have identifier like static blocks or pages?

Can I make magento checkout to have an identifier/ID like static blocks and pages? What's the best practice or solution to do this? I'm currently calling out magento pages / static blocks through ...
1
vote
0answers
108 views

Magento 1.9 Warning: require_once and Fatal error: require_once

Anyone, can you help me how to solve this? Warning: require_once(/srv/app/Mage.php): failed to open stream: No such file or directory in /srv/public_html/abstract.php on line 85 Fatal error: ...
1
vote
1answer
95 views

How to get current page url in static blocks

I want to get my current page URL in one of my static blocks How do I get that?
1
vote
0answers
316 views

Magento 2 : Pass URL from Static block to PHTML

In my static block, Following is code {{block class="Magento\Framework\View\Element\Template" template="Magento_Theme::html/homepage-blocks.phtml" title="Scoring &amp;...
1
vote
1answer
181 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 ...
1
vote
2answers
343 views

Loading custom phtml file in static block

I have a static block that I want to load a .phtml file from. I used this code after looking through stackoverflow, {{block class="Magento\Framework\View\Element\Template" name="custom_page" ...
1
vote
1answer
78 views

How to Remove description text from product slider - Luma Theme

Please check. Luma Theme This one is from website Homepage Product tab This is Product slider / carousel Magento - It's coming from block. My question is - Can we remove description lines. If yes, ...
1
vote
0answers
35 views

Single Static Block Linking To 50 Different URLs

I have a banner image that I need to display in approximately 70 categories on my website. The banner will link from one specific category to another specific category, but will be different every ...
1
vote
2answers
732 views

Add a block to a page with event observer

I'm trying to add a static block to a page with an observer. The event that I'm listening to is controller_action_layout_generate_blocks_after and this is my observer code: <?php ... class ...
1
vote
1answer
721 views

Magento 1.9.3.6 Sub-categories listing cache issue

I have followed the tutorial found here to list their sub-categories on my category pages. However, after the first category page visit it displays the sub-categroies of this category page for all ...
1
vote
4answers
226 views

$this keyword is not available in template of core/template block

I want to execute some custom PHP code in a static CMS block. I want to do this by having a block of type core/template loading a template containing the PHP code. I have created the block and can do ...
1
vote
2answers
803 views

Responsive a static block - Magento 1.9.2

I was able to create full width sliders on a single page using custom css added to the design tab for the page: <reference name="head"> <action method="addItem"><type>skin_css&...
1
vote
1answer
603 views

Move Static Block created from admin panel to above the Breadcrumb in magento 2

If the question was not understandable. I want to move the a block (which contains 2 images) , which was called in a catalog page. The block and catalog page were created in admin panel. i think a ...
1
vote
0answers
35 views

Community Poll at checkout

Does anyone know how do I add a community poll at the end of my checkout success page? I know I can use widget and add a static block but I can't seem to find the correct code. I am using Magento CE 1....
1
vote
0answers
53 views

How to add class to javascript document.write & shorten date format?

<div class="shipout"> <p style="margin:0;">Delivery: FAST & FREE</p> <script> Date.prototype.addDays = function(days) { var dat = new Date(this.valueOf()); dat.setDate(...
1
vote
0answers
1k views

How to add static blocks to transactional emails?

I have been looking around on how to add a static block into the transactional emails. I found the solution on github here: https://gist.github.com/mkdizajn/6351957 The regular way to add a static ...
1
vote
1answer
194 views

Magebuzz manufacturers extension on a static block

I'm tring to display the manufacturer list in a Static Block on Magento 1.9.3.2 But cannot understand how to do this: {{block type="Magebuzz/Manufacturer" name="manufacturer" template="Product/...
1
vote
0answers
16 views

Static blocks for each page section

i have in page 3 section for static blocks, i need in admin add for each section unlimited static block with title, image and site url. How i can do easy? Thanks
1
vote
3answers
5k views

how to disable cache for particular Static Block in magento 1.9 [duplicate]

I have a static block i reuse on different pages and when I call this block I'm 'feeding' it 4 product SKU's, different SKU's for different pages, its like a specials/promotion block. However, when I ...
1
vote
1answer
39 views

How to display layout for static block pages for magento1.9.1?

i created static block pages like about us, contact us and banner. But the storeview can not display, So please help me how to add layout for all static block pages...how to display storeview tab in ...
1
vote
0answers
53 views

How do I add the catalog/navigation block or am I just lost?

I am working on Magento 1.9.2.4 using a Porto theme. I am trying to get my sub category listing block working so it shows the sub category on the parent category page. The links are showing and ...

1
3 4
5
6 7
10