Questions and Answers

How do I collect points?

  • +4
    Chosen as best answer
  • +1
    Posted answer
  • +1
    Posted question
  • +1
    Thumb up
  • -1
    Thumb down

by Dan M in General about May 6, 2016 open - report

Anyone know how to change description to be below form element on signup ?

As default SE places the description above the form element Which tbh looks really silly, as you have the question, then to the right is the description, and if you have a long description it knocks down the form element .Does anyone know how to rearrange the description and form element, so that the description is on the bottom of its form elementAttached is image of current default look

Answer: 1  •  Score 0  •  Views: 1598

1 Answer
Browse by
  • 3

    by alvaro about October 13, 2016

    If you mean what I think, just do the following:


    1. Go to /User/Form/Account.php

    2. Find the form element you wish to modify (i.e. username, password, email, etc.)

    3. If you find the element has already the placement order:


    $this->style->getDecorator('Description')->setOption('placement', 'prepend');


    Just change the word "prepend" by "APPEND" as below:


    $this->style->getDecorator('Description')->setOption('placement', 'APPEND');


    and if you find that the element doesn't have the placement order just add it below the description as follow:


    $this->addElement('Textarea', 'style', array(
    'label' => 'Profile Style',
    'description' => 'Add your own CSS code above to give your profile a more personalized look.'
    $this->style->getDecorator('Description')->setOption('placement', 'APPEND');


    Hope it helps :)

    • Score: 0
You must login to post an answer.