sap123
Forum Replies Created
-
Great, had this problem too. Nice fix.
Forum: Fixing WordPress
In reply to: Image hackedreally, you know that 100% set in stone do you that this site has been hacked? that in this particular instance a site has been hacked even though all the folder permissions are correct?
Forum: Fixing WordPress
In reply to: Image hackedI have seen this recently, on sites where permissions are fine. is it some kind of bug with the latest wordpress verison? seems to be when comments are turned off on a post or hidden via css that the bots can get in to post…
Forum: Plugins
In reply to: [Ultimate Maintenance Mode] when logged in can't see pageshey many thanks, thats it.
wordpress address was www.
when site address was https://have made both https:// and then could see mm pages.
Forum: Fixing WordPress
In reply to: add a span to the main menu links in the twentyeleven theme<?php wp_nav_menu( array( 'theme_location' => 'primary', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
[Moderator Note: Will you please post code or markup snippets between backticks or use the code button.]
Forum: Fixing WordPress
In reply to: add a span to the main menu links in the twentyeleven themeok many thanks, I’ll use the bottom one then.
Forum: Fixing WordPress
In reply to: add a span to the main menu links in the twentyeleven themeok so full twentyten theme code as below;
<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
or edited twenty ten code leaving out the container _class bit??
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
have tried both and they work, but thought there might be site-wide ramifications if too much/wrong code used.
thanks
p[Moderator Note: Please post code or markup snippets between backticks or use the code button.]
Forum: Fixing WordPress
In reply to: add a span to the main menu links in the twentyeleven themeHi Esmi,
I’m not editing the default theme, have duplicated it and renamed it and am editing that. Any idea about the above?
thanks,
pForum: Fixing WordPress
In reply to: Replace text with items in menu, twenty eleven themeHi Esmi,
I’m simply trying to add a span to the main nav links in the twentyeleven theme. This is just so i can add an icon for the home page link and leave the rest as text links. You briefly mention doing this in the 2nd comment above.
in the header.php page of the TWENTYTEN THEME the wp_nav_menu parameteres are as below(the span is already there for the a link);
<?php wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’, ‘link_before’ => ‘<span>’, ‘link_after’ => ‘</span>’ ) ); ?>
….But in the TWENTYELEVEN THEME they are different and there is no span.
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>
to add a span should it be the same as the twentyten theme or is that too much code? and it should be something like this?
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘link_before’ => ‘<span>’, ‘link_after’ => ‘</span>’ ) ); ?>
once I have the span in place i can via css style and hide whatver elements I need to, its just getting the span in there without any other knock on effects site wide.
Any help with this appreciated.thanks
p