Problem including a file on WP Twenty Fifteen theme (solved)

Hi there. I have this problem. I’m currently try to include the file kbar.php into my Twenty Fifteen theme, but it comes with a lot of problems, in term of CSS. Basically it’s a navbar file. I’m using it on everypage of my website. I have WP on a sub-domain.

This is the code in the kbar.php: http://codepad.org/L3sbeTRb

In the header.php template of the WP theme I’m using this PHP code:
<?php require_once("../includes/kbar.php"); ?>
I also added to the header.php file these lines:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">

You can see the results online here: http://articoli.klayz.com/.
How I want it displayed? Here it is: http://www.klayz.com/.
So, can you please give me an input on how to solve this problem? And oviously, thank you so much in advance for any reply.

Ok, I just solved by using a more simple navigation bar without using all the included files of Bootstrap. I’m fine now. Thank you for reading! :smile:

2 Likes

Sorry that we couldn’t be of any help this time but be proud of yourself because you manage to find a solution :slight_smile:

1 Like

Nope, I still have a lot of problems. Try go here: articoli.klayz.com. I included a simple ul list with some inline style, but I got a lot of display errors and I really don’t know why this time. :frowning:

When you say display errors, what do you mean? Errors with the validator? Or you mean that the menu shows at the very left, at least in FF?

In my portatile computer, it shows it pretty decent, with no more problems… but here in my normal computer I get this: NO, NOTHING! Everything worked. It was a problem of cache… here I had some old cache and it was showing completely messed up. So, how to say? Excuse me one more time! :frowning:
and thank you for your reply, molona!

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.