Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can blocks only go in certain places?

Featured Replies

The newsletter subscription block is in the footer by default.   When I move it to the left column (hook it to the left column?) it displays funny.

The bottom circle shows the newsletter subscription in the original location (see attached picture please).  The top circle with the question mark shows the newsletter subscription moved to the left column.

Is this a case where certain blocks can only go in certain places?....or am I doing it wrong?

Newsletter Block.jpg

You have to edit it's .tpl as it most likely has col-sm-3 property.

And this percentage now calculates from Left column width.

Try with browser inspection tool and remove col-sm-3 and it will most likely expand to complete width of your left column.

 

  • Author
1 hour ago, toplakd said:

You have to edit it's .tpl as it most likely has col-sm-3 property.

And this percentage now calculates from Left column width.

Try with browser inspection tool and remove col-sm-3 and it will most likely expand to complete width of your left column.

 

YES!......That worked perfect, thanks.

  • Author

Spoke too soon.....
It was resolved using the inspection, so I assume it would be no issue to edit the tpl file.

However after changing the tpl file as follows:
 

From:
<section id="blocknewsletter" class="col-xs-12 col-sm-3">

To:
<section id="blocknewsletter">

 

A browser inspection still reveals...
image.png.01f74eeab364d90029c726aacd733dde.png

 

I have refreshed, restarted, etc....caches are cleared....and yet this still shows up.

Any ideas?

Edited by jfnewell1965
Spelling

Have you done it in modules/blocknewsletter/blocknewsletter.tpl or in theme/yourtheme/modules/blocknewsletter/...

  • Author

I did it in:

theme/yourtheme/modules/blocknewsletter/...

I thought all changes should be made in the theme folder rather than in what I think of as the core.

and....

I don't see any ".tpl" files in:

modules/blocknewsletter/

It's ok if you did it there. Strange it doesn't show changes...

There is blocknewsletter.tpl  in modules/blocknewsletter/views/template/hook/
Try to replicate exact path in theme folder and see if it works

  • Author

Yes, I can find that in my installation, however.....it lacks the "<section id="blocknewsletter" class="col-xs-12 col-sm-3">" line like the other ".tpl" file.

themes/community-theme-default/modules/blocknewsletter/blocknewsletter.tpl

Removing col-xs-12 col-sm-3 shows the newsletter in left column in 100% column width.

And your other issue with facebookblock is related to same problem - not understanding how the system and templates are working.

And if editing above file is not working for you, than you have one option enabled which you should disable if you are editing theme files.

Never recompile template files

 

1334309798_Screenshot_2019-03-22MyStore.thumb.png.11c422d6cdeee26b554f7b40e2e11fde.png

Edited by toplakd

  • Author
4 hours ago, toplakd said:

And if editing above file is not working for you, than you have one option enabled which you should disable if you are editing theme files.

I don't know what this means.   What option is it that I should disable?

As for the rest...OK, I get it, it's me...I will work on it.

But....Here is an example of my confusion.

I go to Modules and services -> Positions, then I select "Transplant A Module"

This brought up
image.thumb.png.afacc479534dcde327205668309a9c08.png

I choose "Block Newsletter" and then in the "Transplant to" section I only had a few choices.   "displayLeftColumn" was one of these choices, so I made the assumption that the Block Newsletter would work there.

So is it correct to say that even if a section appears in the "Transplant to" selector, the block may in fact not work there?

If this is the case, then how does one know?   Just try position and see what works?

Edited by jfnewell1965

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.