I don't actually have the theme installed to experiment with right now, but you'll probably have to play a little with the CSS or the code above to get it positioned perfectly. That's the div that contains the other divs for "Have any questions?", social icons, etc. In other words, top-panel.php is to header.php, like header.php is to index.php.įirst, back up any files you edit, then carefully insert the language bar code in top-panel.php so the file looks something like this: īasically, you want the language bar code to be inside the top-panel. It's increasingly common for WordPress themes, when their designers want to keep everything tidy, to have usual theme parts like header.php, footer.php, etc. You can see where it's referenced in header.php here, just above where you currently have the language bar code: It contains the expanded PHP code for that part of the header in your theme. The file you need to edit is top-panel.php, in the same directory as header.php. superfish() // call supersubs first, then superfish MaxWidth: 40, // maximum width of sub-menus in em unitsĮxtraWidth: 1 // extra width can ensure lines don't sometimes turn over MinWidth: 16, // minimum width of sub-menus in em units 'main_navigation', 'container' => false,'menu_id'=>'menu-main-navigation','menu_class' => 'sf-menu sf-js-enabled sf-shadow', 'fallback_cb'=> 'terrifico_selectmenu', )) ?> Here's my header.php file right now: section and everything up till You can see in the image below where it is right now and where I want it (right, where I wrote HERE). I tried it everywhere in my header.php file but no luck. It works but I don't know how to place it where I want. I bought a theme and installed Simple Language Switcher plugin. To say on the beggining, I'm no php coder, I just stambled on this thing working on my wordpress website. So, I'm working on my website, in Wordpress.
0 Comments
Leave a Reply. |