No announcement yet.

Hiding the Primary Content in a section

  • Filter
  • Time
  • Show
Clear All
new posts

  • Hiding the Primary Content in a section

    A couple of caveats about this method before we get started...
    • If you actually show content in the primary content widget, you can get dinged for cloaking via search engines. If there is no content to show except the section title, I doubt you'll have much to worry about about.
    • It renders part of a layout unusable across your site. You cannot use this method if you use the Secondary Footer within layouts.
    • You cannot edit the section while it is hidden.

    With that out of the way, I have looked for a way to hide the primary content widget for a while not. It is not needed on every page, especially a custom homepage. Unfortunately, there is no way to turn it off. Due to this, I chose to hide it. The way I did this was this.

    Moving the Primary Content Widget
    1. Create a new grid or edit an existing one. Choose whatever options you have along with using a Secondary Footer (the important part).
      Admincp -> vBulletin CMS -> Grid Manager
    2. Assign the Grid to a Layout.
      Admincp -> vBulletin CMS -> Layout Manager
    3. Drag the Primary Content Widget into the Secondary Footer Area.
    4. Assign other widgets as necessary.
    5. Save the Layout.

    Hiding the Secondary Footer
    1. In the Style Manager select Edit Templates
    2. Go to the CSS Templates and double click on additional.css
    3. Add the following code:
      #ft {

    Finally, edit your section(s) in the CMS front-end by clicking on the pencil icon and assign the appropriate layout to the section.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.