Forum Replies Created
-
AuthorPosts
-
wensolutions
KeymasterNice to know that the problem has been solved. If there are any further query, then, please feel free to post them.
We will really appreciate if you could help us too by rating our theme in WordPress repo here:-
https://wordpress.org/support/view/theme-reviews/education-hubThank you 🙂 .
wensolutions
KeymasterSorry there was a syntax error in previous code given. Please paste following corrected code in your child theme’s functions.php file.
function education_hub_get_featured_content_details( $input ) { $featured_content_type = education_hub_get_option( 'featured_content_type' ); $featured_content_number = education_hub_get_option( 'featured_content_number' ); switch ( $featured_content_type ) { case 'featured-page': $ids = array(); for ( $i = 1; $i <= $featured_content_number ; $i++ ) { $id = education_hub_get_option( 'featured_content_page_' . $i ); if ( ! empty( $id ) ) { $ids[] = absint( $id ); } } // Bail if no valid pages are selected. if ( empty( $ids ) ) { return $input; } $qargs = array( 'posts_per_page' => esc_attr( $featured_content_number ), 'no_found_rows' => true, 'orderby' => 'post__in', 'post_type' => 'page', 'post__in' => $ids, ); // Fetch posts. $all_posts = get_posts( $qargs ); $contents = array(); if ( ! empty( $all_posts ) ) { $cnt = 0; foreach ( $all_posts as $key => $post ) { $image_array = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'education-hub-thumb' ); $contents[ $cnt ]['images'] = $image_array; $contents[ $cnt ]['title'] = esc_html( $post->post_title ); $contents[ $cnt ]['url'] = esc_url( get_permalink( $post->ID ) ); $contents[ $cnt ]['excerpt'] = $post->post_content; $cnt++; } } if ( ! empty( $contents ) ) { $input = $contents; } break; default: break; } return $input; }
It should now work with formatting of ordered list in your site. For any confusion or problem please let us know.
Thank you.
wensolutions
KeymasterRegarding issue #1 make sure you have selected the page from Customizer -> Home / Front Featured Slider -> Select Slider From Page , here you can select the page to show the slider . The button would then auto links to the selected page.
Regarding issue #2 it looks like you have directly input the image HTML tag in the Visual Editor rather it should be in Text editor. This will render your image and correctly displays in your browser.
Hope this tips will help you sort out this confusion.
If you still have any confusion, let us know.
wensolutions
KeymasterIn your Custom CSS field or Child Theme’s style.css file paste the following style to resize the sidebar .
#secondary, body.evision-right-sidebar #secondary { width: 26%; }
You can change the numeric value for width as per your requirement.
And simultaneously you may wish to increase the right side content width for which you can optionally put the following code just below the above code.
#primary, body.evision-right-sidebar #primary { float: left; width: 68%; }
Hopefully this will resolve your query on resizing. If you have anything else, kindly let us know.
Thanks!
wensolutions
KeymasterYou can change the header image specific to the page by editing the particular page. There you can see the custom field for uploading banner image under Layout Options.
Also through Customize -> Theme Options -> Layout Options you can upload the header image that applies globally to all the page headers.
Hope this helps you implementing your requirement.
wensolutions
KeymasterHello,
Sorry that we did not understand your issue earlier but now we have and what we also have is a solution for you.
For that you will be needing to create a child theme for the parent theme, You can create it manually or you can use the help any child theme creating plugins. Here is the link for one of the plugin.
https://wordpress.org/plugins/one-click-child-theme/After that on your child theme’s function.php paste the below given code.
function education_hub_get_featured_content_details( $input ) { $featured_content_type = education_hub_get_option( 'featured_content_type' ); $featured_content_number = education_hub_get_option( 'featured_content_number' ); switch ( $featured_content_type ) { case 'featured-page': $ids = array(); for ( $i = 1; $i <= $featured_content_number ; $i++ ) { $id = education_hub_get_option( 'featured_content_page_' . $i ); if ( ! empty( $id ) ) { $ids[] = absint( $id ); } } // Bail if no valid pages are selected. if ( empty( $ids ) ) { return $input; } $qargs = array( 'posts_per_page' => esc_attr( $featured_content_number ), 'no_found_rows' => true, 'orderby' => 'post__in', 'post_type' => 'page', 'post__in' => $ids, ); // Fetch posts. $all_posts = get_posts( $qargs ); $contents = array(); if ( ! empty( $all_posts ) ) { $cnt = 0; foreach ( $all_posts as $key => $post ) { $image_array = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'education-hub-thumb' ); $contents[ $cnt ]['images'] = $image_array; $contents[ $cnt ]['title'] = esc_html( $post->post_title ); $contents[ $cnt ]['url'] = esc_url( get_permalink( $post->ID ) ); $contents[ $cnt ]['excerpt'] = $post->post_content $cnt++; } } if ( ! empty( $contents ) ) { $input = $contents; } break; default: break; } return $input; }
Save and activate the child theme,
This should solve your issue,Best regards.
wensolutions
KeymasterHello @Logical Growth
Hope you are now started to get what I meant but not enough though.
You needn’t need to make any change to any of the files of parent theme.You need not need to delete or cut and paste the file.
You just need to copy that file from parent theme and paste it in child theme’s folder.
After you have finished copy that file now you need to make changes to the file that you have in child theme’s folder.
And copy code as suggested in header.php file not in functions.php file.
And in style.css(Of child theme) file do as suggested in above replies.Regards!!!
wensolutions
KeymasterAs already stated in above step :
2. Copy file inside inc/hooks/header.php from parent to the child theme with same folder structure
Create same folders in similar nested path as mentioned above. Yes, you need to copy the file header.php from parent to your child theme folder and modify it there.
It seems like you are having tough making changing and understanding the flow, so we advise you to take help of our customizer.
wensolutions
KeymasterHello,
Have you already fixed your issue ? Seems like all your contents are back on the site.
If you have any issues, feel free to ask
Best regards.
wensolutions
KeymasterHello,
To resolve your query please go to Dashboard => Appearance => Customize => Header Image.
Then press the add new image button and upload images one by one, you will be able to see previously uploaded images after you upload new one.
After that press the randomize header images button. This will randomize the header images that you have uploaded.
Have patience and try navigating to different pages of your site, you will be able to see the changes.
Best regards.
wensolutions
Keymaster@sohughes1, yes this is possible.
There is an option to set the menu sticky in Customize -> Theme Options -> Header Options.
Make sure you have added the categories as the menu items as your primary menu from Menus section.
Hope this will give you some idea setting up your menu.
Note : @sohughes1, if you have any other queries please open a new ticket instead of discussing new queries inside different context.
wensolutions
KeymasterHello,
It seems like you have not added any bullets from the page editor on
Dashboard => Pages => All pages => Edit page (Your home page)
Have you tried adding bullets from the text editor?
Please try it and tell us how it goes.
Best regards.
wensolutions
KeymasterHello again,
Can we please have your site URL so that we can see your problem better?
Best regards
wensolutions
KeymasterActually your site appears down so you should talk to your hosting. It does not seem to relate with the code as you also said you undo the code changed in functions.php .
Also to confirm this, you can restore the particular file to see if site goes up. If still not, it is related to the problem with your hosting.
Let us know how it goes.
wensolutions
KeymasterHello,
As much as we would love to help you we cannot because upon monitoring your site and failed to find the issue that your described.
Has it already been solved ?If it has not, can you please explain your problem better?
Best regards.
-
AuthorPosts