Forum Replies Created
-
AuthorPosts
-
ZAAAX
MemberHi Rita & Joyce, this particular vulnerability in WP has always bugged me. I'd been seeking a solution for months and then by luck (mis-clicking the wrong link) I discovered this thread.
Here's the fix for the dreaded Author / Hackers delight URL giveaway .....
https://wordpress.org/plugins/wp-author-slug/
It's a good'n.
Cheers,
Z
Crisp!
ZAAAX
MemberJust thought I'd ask seeing as how I'm working on trying to get the magnifying glass image to be the "Search Button" that you click for the search to happen.
So far I cannot work out where the "<input type="submit" value="Submit">" would go in relation to the image and CSS Code below ....
.genesis-nav-menu .search input[type="submit"], .widget_search input[type="submit"] { border: 0; clip: rect(0, 0, 0, 0); height: 1px; margin: -1px; padding: 0; position: absolute; width: 1px; } .search-form input[type="search"] { background: #fff url(images/icon-search.png) no-repeat right; background-size: 36px 16px; color: #000; font-size: 10px; border: #333 solid 1px; margin-bottom: 6px; padding: 10px; text-transform: uppercase; width: 100%; }
Hope I'm making sense.
Crisp!
ZAAAX
MemberHi @askdesign thanks for the feedback. I actually sorted this one out with CSS. I found that in amongst the Sub Menu CSS codes there was a little snippet I of code that gave a top-border 1px with a transparent background.
I made it #fff and everything was blissful after that.
😉
Crisp!
ZAAAX
MemberLOLOL, ok maybe I'm one of those people who calls Microsoft Support moaning about how the computer doesn't work even tho there's a power outage and I'm told to pack it back into the box cos I'm too dumb to own one, is possible I guess.
I say this cos I just found the Simple Sidebar plugin creator which I didn't see before under the Genesis tab in the Admin Menu.
Sheesh, talk about embarrassment & my face is red!
😉
Crisp!
November 19, 2014 at 4:58 pm in reply to: Genesis Simple sidebars broke after PHP upgrade to 5.4 #132224ZAAAX
MemberHi @tonyedd, tried that code from Nick Ciske and am still having an issue with the Simple Sidebar plugin not showing secondary sidebar options to select. Just shows the primary default option.
Am I missing something?
Crisp!
ZAAAX
MemberOk looks like that code worked @nunotmp
Only problem is now tho, when I go to a page from Admin to edit or select the sidebar with simple sidebar plugin there's no other sidebar option to select except the primary one.
I've linked an image for you to check out if you want.
Image Of No Sidebar Options in Simple Sidebar
Crisp!
ZAAAX
MemberHi Lauren, thanks.
Just wanting to add an extra sidebar so I can use the simple sidebar plugin to allocate which sidebar to display with different pages.
Crisp!
ZAAAX
MemberOk tried that code and replaced some bits to suit ... like this
genesis_register_sidebar( array( 'id' => 'sidebar-secondary', 'name' => 'Sidebar Secondary'), 'description' => 'This is the description.', ) );
And then got a parse error with no site displaying at all.
I placed the code into the functions.php of the theme Executive Pro. So what did I do wrong?
Crisp!
ZAAAX
MemberGreat help Brad & howtofeelhappier, easy to find, thanks for this.
I do have one little question tho. I want the header complete to show above the landing page content, which I can do by creating a custom landing page, uploading it, which I've done, and deleting the ....
//* Remove site header elements
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
remove_action( 'genesis_header', 'genesis_do_header' );
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );from the code call, therefore adding the header into the custom landing page, sweeet.
I wanted to have the header logo image NOT clickable tho, and I was wondering how to do this ... hope I make sense.
Crisp!
ZAAAX
MemberThanks Brad @braddalton. I was wanting to specifically exclude some pages, logged in or not, so as to make some draft or test pages not be site searchable.
I also am thinking that to have the site search work so all comments, authors, posts, pages, categories etc., basically everything is all searchable, is that a code thing?
Crisp!
ZAAAX
MemberOk so I did try a few different codes from a few different people. All failed.
What I did find tho was a beaut little WP Plugin known as Search Exclude. It's tiny, effective n free.
Get it here https://wordpress.org/plugins/search-exclude/
Crisp!
ZAAAX
MemberThanks Brad, tried that for the second code ..
add_filter( 'pre_get_posts', 'exclude_posts_search_when_logged_in' ); /** * @author Brad Dalton * @example http://wpsites.net/ * @copyright 2014 WP Sites */ function exclude_posts_search_when_logged_in($query) { if ( $query->is_search && is_user_logged_in() ) $query->set( 'post__not_in', array( 1, 2, 3, 4, 5 ) ); return $query; }
but kept getting an error parse in functions.php. I'll try the first code as well.
Crisp!
-
AuthorPosts