Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Ebrark

    (@ebrark)

    Great, thanks.

    Thread Starter Ebrark

    (@ebrark)

    Hello,

    Sorry for late reply, currently stuck in China with VPN not working.

    Everything is working fine now.

    Thanks for all your help.

    Thread Starter Ebrark

    (@ebrark)

    Hello,

    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

    Thread Starter Ebrark

    (@ebrark)

    Many 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' );
    Thread Starter Ebrark

    (@ebrark)

    thanks…………….

    Thread Starter Ebrark

    (@ebrark)

    It 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 dots
    Thread Starter Ebrark

    (@ebrark)

    Hey thanks alot mateeee

    Vicius , 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 .

    If 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.

    Thread Starter Ebrark

    (@ebrark)

    thanks for your help vtxyzzy but it’s not what I want and it’s not working for me mate.

    Thread Starter Ebrark

    (@ebrark)

    Will google crawl the other page though.

Viewing 11 replies - 1 through 11 (of 11 total)