Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Top searches › Reply To: Top searches
March 6, 2015 at 11:31 am
#4133
Keymaster
Hi!
It didn’t work, because that function echos the content, and the part where you added was already echoed, so it run twice.
I’ve added the following lines to fix that:
[code]
ob_start();
dynamic_sidebar( ‘asp_top_searches_widget’ );
$asp_plus_sidebar = ob_get_clean();
[/code]
I see you also wanted to make those keywords white, so I added a CSS rule, because putting them into a paragraph will not help. The following rule is added to the search custom CSS section:
[code]
.asp_top_keywords {
margin: 0 12px;
}
.asp_top_keywords a {
color: #ffffff;
}
[/code]