Yes, there’s a way, but consider that the menu will always become a button with a window width of 979px.
Try adding this to your child-theme functions.php:
// header sized to container
add_action('__header', 'tc_header_container_start', 0);
function tc_header_container_start(){
echo '<div class="tc-header-container container">';
return;
}
add_action('__header', 'tc_header_container_end', 40);
function tc_header_container_end(){
echo '</div>';
return;
}
Hope this helps.
Every time I try to put something in the php files the whole site goes blank. I edited the file in a text editor and put the code in the end.
When I move it to the child-theme folder everything just dissapears..
You have some errors in your child-theme functions.php.
The best way to discover those is enabling wp debug in wp-config.php:
http://codex.ww.wp.xz.cn/WP_DEBUG
If you open wp-config.php you will see this line, somewhere:
define( 'WP_DEBUG', false );
change it to
define( 'WP_DEBUG', true );
This will ensure you can discover problems also in the future.
For the current issue can you paste here the whole child-theme functions.php ?
(Ensure to place it here between backticks (the code button))
wait, now I got it to work somehow..
I think it worked! thank you! Now I just need to have the navigation on one row, now the last link falls a bit down..
Glad you solved.
Reduce the padding left/right(20px in the default rule below):
.navbar .nav > li > a {
font-size: 16px;
padding: 5px 20px;
}
Mind marking as resolved also that other topic?
Thank you
That did it! thank you so much!
I noticed something strange, there are three wp-config files in my theme directory,wp-config.php wp-config2.php and wp-config3.php, and my child theme folder is empty. Why? So I have edited the php files from my parent theme directory, (I know that´s not allowed, but I did it anyway) 🙂
Here is the original wp-config.php:
You’re sharing private infos like db user password, secure keys.. it’s not a good idea.
Said so, don’t know what happens, probably is due to your hosting, you should contact them. Anyway just wp-config.php will be loaded, maybe the other two are back-ups.
Oh, damn, so stupid of me! is there a way to remove the post now?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Please change all of your database credentials now. The post was not only visible to anyone viewing this thread, but has now been potentially cached by search engines.
Somebody did it for you 😀
Ok, let´s just forget I did that.
I have just one more question, what is the best way to put different language pages? I have english translations and I want to have pages in finnish and english, so I need to put those flags in the navigation box. I tried many plugins but I can´t get them to work the way I want..
http://ww.wp.xz.cn/support/topic/multilanguage-site-2?replies=1