-
AuthorPosts
-
betteryouthanme Friend
betteryouthanme
- Join date:
- June 2014
- Posts:
- 53
- Downloads:
- 5
- Uploads:
- 16
- Thanks:
- 12
- Thanked:
- 5 times in 2 posts
August 7, 2014 at 1:16 pm #200326Hi,
just met another problem. 😉I’d like to add a button next to the search in header. On click it should open a modal with the login module or any other module, doesnt matter so far..
I edited the header.php as followed:
(see attachment first picture)And added to custom.css following lines:
.head-login {
height: 55px;
position: absolute;
right: 120px;
top: 0;
margin: 0;
}Now created a custom html with following code:
<a href=”#” class=”btn btn-lg btn-success”
data-toggle=”modal”
data-target=”#basicModal”>Login / Register</a><div class=”modal fade” id=”basicModal” tabindex=”-1″ role=”dialog” aria-labelledby=”basicModal” aria-hidden=”true”>
<div class=”modal-dialog modal-sm”>
<div class=”modal-content”>
<div class=”modal-header”>
<button type=”button” class=”close” data-dismiss=”modal” aria-hidden=”true”><i class=”glyphicon glyphicon-remove”></i></button>
<h4 class=”modal-title” id=”myModalLabel”>Login / Register</h4>
</div>
<div class=”modal-body”>
{loadposition login}
</div>
<div class=”modal-footer”>
<button type=”button” class=”btn btn-warning” data-dismiss=”modal”>Close</button>
</div>
</div>
</div>
</div>So far it works, the button is displayed infront of the search.
But if i click to open the modal, it is hidden behind the modal backdrop.. (see 2nd picture)
Hopefully you can help me out.
Best Regards-
chavan Friend
chavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
August 7, 2014 at 1:50 pm #545050can you please post your site Url. So I could check it directly.
betteryouthanme Friendbetteryouthanme
- Join date:
- June 2014
- Posts:
- 53
- Downloads:
- 5
- Uploads:
- 16
- Thanks:
- 12
- Thanked:
- 5 times in 2 posts
August 7, 2014 at 2:56 pm #545059<em>@Chavan 440141 wrote:</em><blockquote>can you please post your site Url. So I could check it directly.</blockquote>
The site is not online, testing with XAMPP and if everything works it goes live. 😉
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
August 7, 2014 at 4:20 pm #545075Please post in the development server. Since it seems to a css fix, so I need to check it . so asking for the site Url
betteryouthanme Friendbetteryouthanme
- Join date:
- June 2014
- Posts:
- 53
- Downloads:
- 5
- Uploads:
- 16
- Thanks:
- 12
- Thanked:
- 5 times in 2 posts
August 7, 2014 at 9:12 pm #545110<em>@Chavan 440170 wrote:</em><blockquote>Please post in the development server. Since it seems to a css fix, so I need to check it . so asking for the site Url</blockquote>
managed to set it up. Have a look here:
http://79.143.187.92/joomla/Thanks
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
August 8, 2014 at 2:08 am #545123create a new position just before end of the </body> then add this Modal code to that position
<div class="modal fade" id="basicModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="glyphicon glyphicon-remove"></i></button> <h4 class="modal-title" id="myModalLabel">Login / Register</h4> </div> <div class="modal-body"> {loadposition login} </div> <div class="modal-footer"> <button type="button" class="btn btn-warning" data-dismiss="modal">Close</button> </div> </div> </div> </div>Now there are 2 positions one is the Button at the top and the Modal pop up is in the bottom of the page.
this is exact way to accomplish this. give a try. If you couldn’t get this right, send me the admin details in PM. I will get this done for you.
1 user says Thank You to chavan for this useful post
betteryouthanme Friendbetteryouthanme
- Join date:
- June 2014
- Posts:
- 53
- Downloads:
- 5
- Uploads:
- 16
- Thanks:
- 12
- Thanked:
- 5 times in 2 posts
August 8, 2014 at 4:17 am #545139Got it. Thanks for your help! Fantastic support 🙂
-
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 2 voices, and was last updated by betteryouthanme 10 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum