• Resolved ravart

    (@ravart)


    hi,
    i am working on a companion blogsite, to my spun-child site. i want the visitor to my spun-child site when clicking one particular circle (named “blog”) to be sent to the companion blogsite (a complete different url ) to its homepage. also, clicking on the menu at the top name “blog” would also take visitor to companion site.
    hope this is clear.
    thanks,
    Art

Viewing 15 replies - 16 through 30 (of 43 total)
  • Thread Starter ravart

    (@ravart)

    okay copied, deleted, replaced – here goes!

    Thread Starter ravart

    (@ravart)

    ??

    what did i miss?

    https://spiritualcompanioningforseculartimes.org

    what next?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you copy all of your Child Theme content-home.php code out and put it in a PasteBin page: https://pastebin.com and link us that

    Thread Starter ravart

    (@ravart)

    the Blog Circle does work !!! it goes to other website

    obviously all the links show up and the circles are out of online

    of 2 rows of 3 which you helped to code for me earlier the other day.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Could you link the thread(s) that I helped you with earlier the other day?

    Thread Starter ravart

    (@ravart)

    this is getting over my head ??
    how do i link pastebin.com to you?

    Thread Starter ravart

    (@ravart)

    <?php
    /**
     * @package Spun
     * @since Spun 1.0
     */
    
    /*
     * Get the post thumbnail; if one does not exist, try to get the first attached image.
     * If no images exist, let's print the post title instead.
     */
    
    global $post;
    $postclass = '';
    $url = '';
    $custom_link = '';
    
    // Get the custom link
    if ( function_exists( 'get_custom_field' ) ) {
        $custom_link = get_custom_field( 'custom_link' );
    } else {
        $custom_link = '';
    }
    
    // Check if the custom link exists
    if ( !empty( $custom_link ) ) {
    
        //Add in "https://" if it isn't there already
        if ( strpos( $custom_link,'https://') === false ){
            $custom_link = 'https://' . $custom_link;
        }
    
        $url = $custom_link;
    
    } else {
        $url = the_permalink();
    }
    
    if ( '' != get_the_post_thumbnail() ) {
    	$thumb = get_the_post_thumbnail( $post->ID, 'post-thumbnail', array( 'title' => esc_attr( get_the_title() ) ) );
    }
    else {
    	$args = array(
    				'post_type' => 'attachment',
    				'numberposts' => 1,
    				'post_status' => null,
    				'post_mime_type' => 'image',
    				'post_parent' => $post->ID,
    			);
    
    	$first_attachment = get_children( $args );
    
    	if ( $first_attachment ) {
    		foreach ( $first_attachment as $attachment ) {
    			$thumb = wp_get_attachment_image( $attachment->ID, 'post-thumbnail', false, array( 'title' => esc_attr( get_the_title() ) ) );
    		}
    	}
    	else {
    		$thumb = '<span class="no-thumbnail">' . get_the_title() . '</span>';
    		$postclass = 'no-thumbnail';
    	}
    
    }
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class( $postclass ); ?>>
    	<a>" title="<?php echo esc_attr( the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php echo $thumb; ?></a>
    </article><!-- #post-<?php the_ID(); ?> -->

    [Please use the code buttons to post code on these forums]

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Copy all the code from your content-home.php file and paste it into this box: https://snag.gy/hkeSE.jpg

    Then press the “Submit” button

    And then just give us the link at the top of your web browser: https://snag.gy/KFmYL.jpg

    Thread Starter ravart

    (@ravart)

    from the other day

    @media all and (min-width: 1201px) {
    .blog #main {
    width: 60%;
    margin: 0 auto;
    }
    }

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Please copy all of my code again and replace it over your content-home.php file, our files are not the same: https://www.diffchecker.com/net7numl (my code on the left, yours on the right).

    Thread Starter ravart

    (@ravart)

    okay i’ll try again.

    https://spiritualcompanioningforseculartimes.org

    don’t know what i’m doing wrong ?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Please try to use PasteBin to share the code of your content-home.php file – I feel the code you pasted in this thread had been corrupted by the forum’s parser and I’m testing a false negative.

    Thread Starter ravart

    (@ravart)

    okay – i created a pastebin account

    how do i send you code?

    Thread Starter ravart

    (@ravart)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try replacing all your code with the code from this PasteBin page instead: https://pastebin.com/A3we5dHA

Viewing 15 replies - 16 through 30 (of 43 total)
  • The topic ‘Link to second blogsite’ is closed to new replies.