Ebrark
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Bayleaf] Headless Full WidthGreat, thanks.
Forum: Themes and Templates
In reply to: [Bayleaf] Change in Date on Blog PostHello,
Sorry for late reply, currently stuck in China with VPN not working.
Everything is working fine now.
Thanks for all your help.
Forum: Themes and Templates
In reply to: [Bayleaf] Change in Date on Blog PostHello,
I did remove the code you mentioned above from the functions.php. It removes Author image.
Also since the new theme update, the child theme breaks posts and pages look:
-
The heading has been aligned to the left.
The Featured image is not in the middle.
Posts/Pages text has moved to right.Did you introduce any new stylesheets ?
Thanks
Forum: Themes and Templates
In reply to: [Bayleaf] Change in Date on Blog PostMany Thanks for your reply.
I get this error, when I add the above code to the child’s theme functions.php: There has been a critical error on your website.
Below is how my functions.php file looks like without the above code:
<?php add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' ); function enqueue_parent_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); } add_filter( 'get_the_archive_title', function ($title) { if ( is_category() ) { $title = single_cat_title( '', false ); } elseif ( is_tag() ) { $title = single_tag_title( '', false ); } elseif ( is_author() ) { $title = '<span class="vcard">' . get_the_author() . '</span>' ; } elseif ( is_tax() ) { //for custom post types $title = sprintf( __( '%1$s' ), single_term_title( '', false ) ); } return $title; }); /** * Adds categories to the pages. */ function add_categories_to_pages() { register_taxonomy_for_object_type( 'category', 'page'); } add_action( 'init' , 'add_categories_to_pages' ); /** * New Entry meta function to include author avatar image. */ function bayleaf_custom_entry_meta() { global $post; ?> <span<?php bayleaf_attr( 'meta-author-avatar' ); ?>> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID', $post->post_author ) ) ); ?>"<?php bayleaf_attr( 'url' ); ?>><span<?php bayleaf_attr( 'name', false ); ?>> <?php echo get_avatar( get_the_author_meta( 'user_email', $post->post_author ), 36 ); ?></span></a> </span><!-- .meta-author --> <?php bayleaf_entry_meta(); } /** * Modify entry meta callback function, */ function bayleaf_custom_modify_entry_meta() { return [ 'bayleaf_custom_entry_meta' ]; } add_filter( 'bayleaf_markup_entry_meta', 'bayleaf_custom_modify_entry_meta' ); /** * Move entry meta below title, */ function bayleaf_custom_page_entry_header_items() { return [ [ 'bayleaf_get_template_partial', 'template-parts/post', 'entry-title' ], 'bayleaf_entry_meta_wrapper', ]; } add_filter( 'bayleaf_markup_page_entry_header_items', 'bayleaf_custom_page_entry_header_items' );
Forum: Themes and Templates
In reply to: [WP Profile] Removing imagesthanks…………….
Forum: Hacks
In reply to: Slider Showing Posts Instead of PagesIt can be fixed from this code all I know :
<?php
global $post;
$today_special = apply_filters(‘templ_anything_slider_widget_postsobj_filter’,get_posts(‘numberposts=’.$title.’&category=’.$category.”));
foreach($today_special as $post) :
if($post){
setup_postdata($post);
$post_images = bdw_get_images($post->ID,’large’);
?>Taken from above.
Forum: Fixing WordPress
In reply to: Excerpt and dotsHey thanks alot mateeee
Forum: Everything else WordPress
In reply to: Main keywords not working with google searchVicius , build few quality links with exact match keywords to your homepage , using your targeted keyword “Receptai” and “Patiekalai” , i had a look at your backlinks profile.
Let me know if you need more help .
Forum: Installing WordPress
In reply to: 2 domains, 1 hosting account, 2 WordPress installationsIf you have Deluxe linux hosting you can have Unlimited Websites on your hosting , you need to create another folder for your second website and upload wordpress to it , and create the database manually.
The best thing is give them a call and let them do it for you.
Forum: Fixing WordPress
In reply to: Duplicate posts on websitethanks for your help vtxyzzy but it’s not what I want and it’s not working for me mate.
Forum: Fixing WordPress
In reply to: Duplicate posts on websiteWill google crawl the other page though.