Skip to content

Commit

Permalink
Hide CGE search on WP
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Oct 29, 2024
1 parent 8cf9a71 commit 94b5d94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/castle_engine_externals.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function paypal_button($with_logos = true)
function castle_search_box()
{
return <<<EOD
<form action="https://duckduckgo.com/" method="get" role="search">
<form action="https://duckduckgo.com/" method="get" role="search" class="castle-navbar-search">
<div class="input-group flex-nowrap">
<input type="text" class="form-control" name="q" placeholder="Search..." style="min-width: 8em">
<input type="hidden" name="sites" value="castle-engine.io">
Expand Down
9 changes: 9 additions & 0 deletions htdocs/wp/wp-content/themes/cge/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@

/* CGE additions */

/* We have CGE search on navbar on WP pages:
1. because it has a bit broken style (background, border, height)
due to WP CSS
2. but also it is confusing since WP adds it's own "Search" right
below, in the sidebar on the right. */
.castle-navbar-search {
display: none;
}

.news_date .edit-link {
margin-left: 1em;
}
Expand Down

0 comments on commit 94b5d94

Please sign in to comment.