Wordpress is messing up .. help trouble shoot [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I wrote this..
<?php wp_nav_menu (array ( 'conaitner_class' => 'main-nav','container' => 'nav'));?>
but.. WordPress displays this code as
class="menu-main-nav-container"
The class is supposed to be .nav-conainer but wordpress adds "menu-main-" infront of it

The problem is that you have a typo: conaitner_class should be container_class:
wp_nav_menu (array ( 'container_class' => 'main-nav','container' => 'nav'));
Also, the way you are calling this, the class will end up being main-nav, not .nav-conainer. I'm not sure where you're getting the latter.

Related

How to remove "Category: [category name]" from wordpress [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I tried some solutions from another threads and it doesn't works for me.
Screenshot
I need remove that text from header in category. I would like it was only [category name].
Would anyone help me, please?
For Masonic Wordpress theme:
In theme editor edit file extras.php
Change line
$masonic_header_title = single_cat_title('Category: ', FALSE);
to this one
$masonic_header_title = single_cat_title('', FALSE);
Save the changes and you are done

Shorten useless coding? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Creating my loading screen on garrys mod, and seeing this "useless" coding, and was betting that there is a way to shorten it massively, however I am quite a php nooby and was wondering if there was a perhaps a way to use arrays or something to make it easier/shorter? Code Here
$array = array(
"gm_flatgrass" => "Flatgrass",
"cs_assault" => "CS Assault",
"de_train" => "",
...
);
$getmap = $_GET['mapname'];
if(array_key_exists($getmap,$array)) {
$map = $array[$getmap];
}

Is there a way to have my webpage automatically load a preselected page once a certain php function is complete [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Essentially the title, please keep it simple, im not accustom with code.
You can use header('Location:yourpage.php') at the end of your function.
Header

Add array to array without keys [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I know this must be a huge newbie question, but I didn't find the correct answer. Let's see. I have an array set:
$global_array = array();
Then, I want to add an arry inside $global_array, but I dont want the keys. So, the result I want to get is:
$global_array = array(
array(
'bla',
'bla'
)
);
Sorry for the noob question. Thanks!
This should help:
$global_array[] = array('bla','bla');
All arrays will have keys...
If not defined as default 0,1,2,3...

I need to use themeMyLogin widget [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Should I use theme my login widget? I don't know whether or not I should begin programming it from scratch or there is already a widget.
Do you just want to use this plugin?

Categories