ElkArte Community

Elk Development => Theme development => Topic started by: IndianTalkZone on March 27, 2016, 06:50:31 am

Title: Few queries in Theme
Post by: IndianTalkZone on March 27, 2016, 06:50:31 am
I a beginner who started to style themes and i choose ElkArte default to do it. I tried adding my own menu navigation and it screwed up the forum structure and i don't know how to use if logged in show menu (administration).

Here is a screenshot of the sample.


Title: Re: Few queries in Theme
Post by: emanuele on March 27, 2016, 07:41:09 am
A question without context is difficult to answer. ;)
What did you change?
Title: Re: Few queries in Theme
Post by: IndianTalkZone on March 27, 2016, 07:43:21 am
 :-[ I added,


<ul>
  <li><a class="active" href="/">Home[/url]</li>
 
  <li><a href="/index.php?action=mentions">Mentions[/url]</li>
  <li class="dropdown">
    <a href="#" class="dropbtn">Messages[/url]
    <div class="dropdown-content">
      <a href="/index.php?action=pm">Read Messages[/url]
      <a href="/index.php?action=pm;sa=send">Send Messages[/url]  
    </div>
  </li>
<li class="dropdown">
    <a href="#" class="dropbtn">Posts[/url]
    <div class="dropdown-content">
      <a href="/index.php?action=unread">New Posts[/url]
      <a href="/index.php?action=unreadreplies">New Replies[/url]  
    </div>
  </li>
<li><a href="/index.php?action=memberlist">Members[/url]</li>
<li><a href="/index.php?action=login">Login[/url]</li>
</ul>


and the respective CSS for it.
Title: Re: Few queries in Theme
Post by: emanuele on March 27, 2016, 09:03:50 am
Okay, let's do a step back.
Actually, let's do a couple of steps back.
First: how do you make a "good" question (i.e. one that can get an answer in a reasonable amount of time)?
1) You describe the most accurately possible what you do.
That's all.

With the informations you have given up to now I can only say that some of your css changes the display property of some elements.
I cannot be more specific not knowing what css is involved.

Also, where did you actually put the menu code?
Title: Re: Few queries in Theme
Post by: IndianTalkZone on March 27, 2016, 10:51:54 am
I apologize for my noobness, i think you can close the thread. As i think i won't be able to convey better. I leave themes to the expert hands :D
Title: Re: Few queries in Theme
Post by: emanuele on March 28, 2016, 10:37:14 am
Well, learn is not a process where you try once and when you are asked to give more details you give up and do something else.
But I guess it's your call here. ;)

My words above may look a bit harsh, but with CSS I'm as good as a blind donkey, so I cannot guess what you did wrong without knowing what you put there.
You may have added some:
Code: [Select]
.someclass {
display: inline-block;
}
and that may be the thing messing up everything.
But from here on, either you give the full CSS you added, of you have to figure out what is causing the mess.
Title: Re: Few queries in Theme
Post by: meetdilip on March 28, 2016, 10:14:21 pm
@IndianTalkZone ,

1. Attach the original of CSS file you modified

2. Give the code your replaced. ie, what you replaced ( line no. from - to ) and the replacement code.
Title: Re: Few queries in Theme
Post by: IndianTalkZone on March 29, 2016, 04:14:37 am
Kindly forgive my stupidity :'( , i once again try coding again from the scratch and ask queries with all the codes and script attached.
I will also make sure, whether i made the question clear, provided the codes.
Title: Re: Few queries in Theme
Post by: meetdilip on March 29, 2016, 05:01:10 am
It's ok. Happens to all :)
Title: Re: Few queries in Theme
Post by: emanuele on March 29, 2016, 07:59:04 am
Try something is not stupidity. ;)
/me tries a lot of things every day and most of them fail miserably... xD