Drupal, put the Web Form on top of the content.

Asked

Viewed 182 times

0

I need to do in the Drupal theme put this Web Form on top of the content instead of at the bottom. I do not know how Drupal works, however I have some knowledge of creating Wordpress templates, I lowered the theme but I do not know which file I should change so that the Web Form stay on top of the file.

What is the default file name? How to change this file? I already have access to the theme, but I don’t know where to change.

If it helps you the theme used is called Professional Theme 7.x-2.04 However I do not think you need to lower the theme to change because I believe that file names should have a pattern. (In the same way as Wordpress) Help me find it.

inserir a descrição da imagem aqui

3 answers

1


It is necessary to change the some files in the theme you are using.

1 - Create a new region for the content you want, this is done in the file seutema.info

regions[conteudoantes]     = 'Itens exibidos antes do conteúdo principal'

2 - In the archive page.tpl.php add the new region

<?php
  print render($page['conteudoantes']); 
  print render($page['content']); 
?>

3 - in the blocks, add your webform block in the new region and save.

4 - under warranty, clear all caches

1

In the administrative menu, go to Structure and Blocks. Inside Blocks, there is in the Content region a block called "Main page content". See if you change the order of the blocks in Content you get the result you expect.

  • I went in blocks and changed the Web Form to content-top. But updating the page and the forms is the same way. I tried to lower the theme and change directly in the theme, but I found nothing that referred to the web form.

0

I couldn’t do this in Drupal itself, but I hid the div from the form, inspected the element, copied the HTML and wrote the form in the post HTML itself.

  • so didn’t use the drupal at the end... to keep a record I answered here...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.