-
AuthorPosts
-
June 18, 2015 at 9:59 pm #461615
Hi,
I got to two pages (newsletter, newsletter2) that should not pop up as search results
in an Ajax search. Is there a way to achieve this?Thanks
Bob
June 19, 2015 at 3:13 pm #461966Hey hasbeat!
Open up /enfold/functions-enfold.php and around line 149 you should see this.
$defaults = array('numberposts' => 5, 'post_type' => 'any', 'post_status' => 'publish', 'post_password' => '', 'suppress_filters' => false);
Try changing it to this.
$defaults = array('numberposts' => 5, 'post__not_in' => array( 6, 7 ), 'post_type' => 'any', 'post_status' => 'publish', 'post_password' => '', 'suppress_filters' => false);
And change the “6”, and “7” to the IDs of the pages you want to exclude.
Cheers!
ElliottJune 25, 2015 at 11:34 am #464540Hi Elliott!
Thanks for the codes! The suppressed pages, however, still show up in
“see all search results”. Is more alternations in the code necessary?Best
June 26, 2015 at 9:29 am #464816Hi Elliott,
I would also need your expertise on a couple more issues.
Q1: Hyperlinks – not underlined, colour change on mouse over
On five subpages (see pic below) each term , including the headings, should become an external link.
Links should not be underlined, font colour black.
On mouse over: turning underlined or not, font colour turning blue.
It works fine with links in the footer and in toggles (see pics b+c below)
Current Quick CSS:
#top .social_bookmarks li a { font-size: 18px; }
.image-overlay-inside:before{
display: none !important;
}
.image-overlay {
background: #50b8e3;
}
.grid-image:before {
content: attr(title);
position: absolute;
width: 100%;
height: 100%;
z-index: 1000;
text-align: center;
opacity: 0;
font-weight: 200;
font-size: 20px;
color: #ffffff !important;
top: 50%;
}.grid-image:hover:before {
opacity: 0.75;
}.grid-image:before{
transition: all linear 0.2s;
}.grid-content {
display: none !important;
}
.logo img {
top: 8px;
}.header_color .ajax_search_title {color: #ffffff; line-height: 1.4em; height: 20px; margin-top: 3px; font-size: 13px; }
.ajax_search_response h4:first-child, .ajax_search_response h4 {font-size: 13px; text-transform:uppercase;}
.header_color .ajax_search_excerpt {display:none;}
#top div .ajax_search_entry_view_all {font-weight: normal; text-transform: uppercase;}
.ajax_search_image {border-radius:0px;}
.main_color .search-result-counter {background:#50b8e3;}
.search-result-counter {box-shadow:none; border-radius:0px; color:#fff; font-weight:bold;}
.post-meta-infos {display:none;}
.template-search .entry-content .post-title {font-size:13px; margin:0; padding-top:10px;}
.responsive .boxed#top {-moz-box-shadow: 0 0 25px #000; -webkit-box-shadow: 0 0 25px #000; box-shadow: 0 0 25px #000;}
.small-preview {box-shadow: 0 0 6px rgba(0,0,0,0.4);}
#top .avia-post-nav:hover {background: #50b8e3; background: rgba(80,184,227,0.8);}
#top .avia-post-nav {background: #aaa; background: rgba(80,184,227,0.4);}
Q2: Mouse over: overlay squared first before turning round
Image: 170×170
Image Fade: Right to left
Image Styling: Circle
Image Hover: NoBut, same setting works fine with portfolio-entries:
Image Size: 250×250
Image Fade: Pop up
Image Styling: Circle
Image Hover: NoQ3: Is it possible to „smoothen“ the border of the circle?
Q4: Plugin: WP Google Maps / jQuery troubleshooting
It is possible to include 2 maps without problems. A third map gets me the following
error (see pic below).
” in order for WP Google Maps to work, jQuery must be installed. A check was done and jQuery was
not present.WP Google Maps Advice: install jQuery in your theme. I would like to know your views on this before altering code.
Which code snippet, if any at all, would you recommend to use?
Thanks for your assistance!
June 29, 2015 at 4:22 pm #465920Hey!
1. Did you already get this sorted? I checked your link but all of the links in the footer are not underlined and they change to blue when hovering over them.
2. I don’t understand. Can you take a screenshot highlighting what your trying to do?
3. No, that’s as smooth as is possible with CSS.
4. It looks like your using a plugin for the maps. I recommend using our google maps shortcode instead. Otherwise you will need to contact the plugin authors.
In the future please split up your questions into different threads. It will make it a lot easier for us.
Best regards,
ElliottJune 30, 2015 at 8:26 am #466208Hi Elliott,
Thanks for your response. All Q`s sorted out now.
As far as my question about hiding pages in Ajax searches is concerned,
I changed the code in enfold-functions php. The suppressed pages still
show up in “see all search results”. Is more alterations in the code necessary?.Best
June 30, 2015 at 6:43 pm #466608Hi!
You can use an advanced search plugin such as Relevanssi. For integration, please see – http://kriesi.at/documentation/enfold/use-relevanssi-in-search-instead-of-the-default-search/
Regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.