Jump to content
thirty bees forum
  • 0

Can blocks only go in certain places?


Question

Posted

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

10 answers to this question

Recommended Posts

  • 0
Posted

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.

 

  • Thanks 1
  • 0
Posted
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.

  • Like 1
  • 0
Posted (edited)

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
  • 0
Posted

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/

  • 0
Posted

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

  • 0
Posted (edited)

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
  • Like 1
  • 0
Posted (edited)
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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...