Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to customize Register and Login links in the header

anton
New Member

Hello,

I'd like to change the Register and Login links to buttons, instead of links.

Where can I change it?

Here's how it looks like now:

https://dev-freightosdp.devportal.apigee.io/

Thanks

Anton.

Solved Solved
0 10 346
1 ACCEPTED SOLUTION

@Anton+Bar , It's simple.

Copy page.tpl.php from "/profiles/apigee/themes/apigee_responsive/templates/pages/page.tpl.php" to "/sites/all/themes/freightos_responsive/templates" folder.

Edit lines 108, 109 to add css classes,

l(t('Register'), 'user/register');

->>>>>>>

l(t('Register'), 'user/register', array('attributes' => array('class' => 'btn')));

l(t('Login'), 'user/login');


->>>>>>>


l(t('Login'), 'user/login', array('attributes' => array('class' => 'btn')));

Push the code & Clear Drupal caches as Developer Portal administrator using admin menu home icon -> Flush All caches link.

Hope it helps.

Strong Suggestion : I suggest to hire a Drupal Expert / Consultant to do above simple changes. It will be cake walk for someone who knows Drupal.

View solution in original post

10 REPLIES 10