Forum Replies Created
-
AuthorPosts
-
In my case the sidebar content appears different under two different categories. I can’t figure out how to reconcile the difference.
Thanks for the note.
Resolved. I found the unique ID value for the widget in the source code:
<div id=”text-6″>
And then I reference that in the CSS:
#main #text-6 {This topic can be closed.
I got it to work. As you mentioned you have to get the ID from within a function inside functions.php. I used the below code and it works. Thanks for the help and support. This can be marked resolved.
add_action( ‘ava_after_main_menu’, ‘enfold_customization_header_widget_area’ );
function enfold_customization_header_widget_area() {global $post;
$p = $post->ID;
if($p == 25) {
dynamic_sidebar( ‘SearchFilter’ );
}
}BTW, I fixed the login issue. Please disregard that.
In my functions.php file, I added the code:$id = get_the_ID();
echo ‘here is the number: ‘ . $id;Should this return the page ID? It returns nothing at the moment.
I have the widget in my header. It is the text widget and it displays an image. I am trying to get it to display only on certain pages. I added the reset because I was trying anything and everything to get it to work. It doesn’t seem to know what the page is at this point in the functions.php file. So specifying an if statement with is_page has no effect.
I renamed Enfold Child theme folder and then renamed it back and it seems to be ok now.
I am now unable to access my site backend.
hmmm, still doesn’t work unfortunately….
wp_reset_query();
add_action( ‘ava_after_main_menu’, ‘enfold_customization_header_widget_area’ );
function enfold_customization_header_widget_area() {
if(is_page(25)) {
dynamic_sidebar( ‘SearchFilter’ );
}
}Thanks!!
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.I am ok with the sidebar at this point. It is not working as I expect, but I think I will keep the sidebar. Any thoughts on how to resolve the font issue?
-
AuthorPosts