Size Matters! Increase the size of the article title field for descriptive titling

Size Matters! Increase the size of the article title field for descriptive titling

Nowadays website postings have very long titles as another effort to solicit search engines and also excite the reader and encourage clicks.

The tiny article field provided with Joomla's content component is somewhat limiting. It's size seemingly discourages long titles. So we 'bigged it up'!

Check dis out.

Increased article title field

The article title field is moved to the top of the entry fields and spans the window width.

Download the installer file and use Joomla's extension installer.

Note: This is ONLY for the Bluestork administration template for Joomla 2.5.x

Optionally you can just add the modifications to an existing articly override file or make one.

Step 1

Create the appropriate component folder set in the HTML override folder of the Bluestork template at

administrator/templates/bluestork/html

Create folders com_content and in that folder add folder article. So the final folder path should be

administrator/templates/bluestork/html/com_content/article

Step 2

Copy edit.php from

administrator/components/com_content/views/article/tmpl/

to the new article folder you created in the template override.

Step 3

Open the edit.php file for editing and do as below

Add this style declaration within the PHP initializer above all the HTML. Preferably at the end. This will tell the field how to display. You can edit as needed to suit your style.

$document = JFactory::getDocument();
$document->addStyleDeclaration('
div.titlewrap {width: 100%; background: #dddddd; border-radius: 3px; padding: 4px; display: block; clear: both;}
div.titlewrap input.inputbox {width: 95%; font-size: 18px !important; font-family: georgia; font-style: italic; padding: 5px; border-radius: 3px;}
');

Then add this line within the form just below the < form > opening tag

form->getLabel('title'); ?> form->getInput('title'); ?>

Next, delete the title field within the UL tag

  • form->getLabel('title'); ?> form->getInput('title'); ?>
  • Since this is an override file no system damage will occur if your effort fails, just try again and ensure you get all the steps correctly.

     

    Copyright © 2018 CMSEnergizer.com. All Rights Reserved.
    This website is powered by the Joomla!©™ 3 Website Framework | File download and article manager component by CMSE Custom Fields | Advanced Module Manager and Modules Anywhere by NoNumber Elements | Website hosting and development by WebsiteDons

    CMSEnergizer.com is owned and operated by Emuzement Net Inc, Tampa, Florida USA