I have enabled the Top bar in the Marinelli theme on my website and moved the login block into it, but i want the slide up/slide down button to be on top right of homepage rather than the center.

How can i do this

Please Help.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pankaj Vatsa’s picture

Someone please reply to this problem.

ckvergleich’s picture

Category: task » support

subscribe

BhumikaVarshney’s picture

Try this patch

BhumikaVarshney’s picture

Status: Active » Needs review
Premanshu’s picture

Status: Needs review » Needs work
Issue tags: +CSS novice, +Novice
FileSize
34.83 KB
845.87 KB
716.51 KB

Hi Bhumika,

The patch applies and changes the position of the carousel buttons. However, in this issue it is not required to change position of these buttons.

When we place the user login block in topbar. Then on the logged out screen, we see slide up/slide down button that allows us to view the login form. The task is to position that according to request.

I am attaching screenshot for reference.

Premanshu’s picture

Status: Needs work » Needs review

Hi Pankaj,

You will need to change make some changes to marinelli_topregion.js file.

Follow the steps given below:

  1. First open the file in your code editor
  2. At the bottom of the file you will see the comment : //Set start margin
  3. Replace the CSS code at the bottom of the comment with this
    • For the first line :$('#topBarLink a').css('margin-left', ((windowWidth ) - (linkWidth) -30) + 'px');
    • For the second line :
      $(window).bind('resize', function(event) {
      		$('#topBarLink a').css('margin-left', (($(window).width() ) - (linkWidth) - 30) + 'px');
      	});
  4. Save your file
  5. Note: Make sure you don't accidentally change the code other than specified as that may lead to errors.

I hope this solves your problem.

vikashsoni’s picture

FileSize
22.08 KB

patch is applied successfully for reference sharing screenshot ....