WordPress.org

Ready to get started?Download WordPress

Forums

papyrus
Twitter Not Working (6 posts)

  1. Terry
    Member
    Posted 2 years ago #

    Very nice looking theme!

    When filling in the social setting info in theme options, asks for Twitter ID. Entering your ID, tweets appear in widgets (front page) but follow button does not work.

    Enter in the full URL to twitter profile in social setting, the follow button works, but tweets do not appear.

    Love to use, but not broken:(

    http://wordpress.org/extend/themes/papyrus/

  2. colin_newell
    Member
    Posted 2 years ago #

    Yup - if you look at the code in PAPYRUS, the code for Twitter and facebook etc, pulls the WP URL and appends it to your twitter ID - which is clearly wrong - I was mucking with it but each of my attempts to fix broke the page - will fun it passed a WP guru tomorrow.

  3. colin_newell
    Member
    Posted 2 years ago #

    <li><a href="<?php echo $papyrus_option['main']['twitter_id']; ?>" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/twitter.png" alt="Twitter" /></a></li>

    is an example in the header where the template missed the target.

    get_template_directory_uri()
    calls the WP URL - when it should be calling twitter.com/

  4. colin_newell
    Member
    Posted 2 years ago #

    Go from <li><a href="<?php echo $papyrus_option['main']['twitter_id']; ?>" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/twitter.png" alt="Twitter" /></a></li>

    to

    <li><a href="http://www.twitter.com/<?php echo $papyrus_option['main']['twitter_id']; ?>" target="_blank"><img src="<?php echo get_template_directory_uri(); ?>/images/twitter.png" alt="Twitter" /></a></li>

    Crude, but it works great!

    That is the HEADER social networking code in the Papyrus theme - great theme - but that was one small step that was missed.

  5. Terry
    Member
    Posted 2 years ago #

    Thanks for sharing your fix. I had given up on it ever working.

  6. colin_newell
    Member
    Posted 2 years ago #

    You are welcome - here is the fix for the SIDEBAR section of code -

    BEFORE
    =======

    <!-- Twitter section starts here -->
    					<div id="twitter_section">
    						<div id="twitter_update_list_1985"></div>
    						<div id="twitter_follow"><p><a href="<?php if(!empty($papyrus_option['main']['twitter_id'])) {echo $papyrus_option['main']['twitter_id'];} ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/twitter_follow.png" alt="Twitter" /></a></p></div>
    					</div>
    					<!-- Twitter section ends here -->

    AFTER
    =====

    <!-- Twitter section starts here -->
    					<div id="twitter_section">
    						<div id="twitter_update_list_1985"></div>
    						<div id="twitter_follow"><p><a href="http://www.twitter.com/<?php if(!empty($papyrus_option['main']['twitter_id'])) {echo $papyrus_option['main']['twitter_id'];} ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/twitter_follow.png" alt="Twitter" /></a></p></div>
    					</div>
    					<!-- Twitter section ends here -->

    Crude, but effective. I hope the THEME developer picks this up and polishes it off - GREAT free template!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags