Meta File

pending (19 posts) (3 voices)

  1. wesleysoccer
    Member

    What file would I find the following meta information? See image.

    Attachments

    1. Demo_Test_2.png (14.2 KB, 0 downloads) 3 months old
    Posted 3 months ago #
  2. Elliott
    Support

    Hello wesleysoccer,

    The file is /wp-content/themes/infocus/framework.php.

    Posted 3 months ago #
  3. wesleysoccer
    Member

    Thanks so much. I'm trying to add a button next to the last meta field...ie with comments...right after that...What is the best solution to add the code? I need to add some php code...thanks

    Posted 3 months ago #
  4. Webtreats
    Support

    Hi wesleysoccer,

    What is the HTML mark up for the button you'd like to use?

    Or would you like to use one of inFocus button shortcodes?

    Posted 3 months ago #
  5. wesleysoccer
    Member

    I have to add some php code (see below)

    <?php echo upb_bookmark_controls($add_text = 'Favorites', $delete_text = 'Remove Favorite', $wrapper = true);?>

    It's for bookmarking posts...thanks.

    Posted 3 months ago #
  6. Elliott
    Support

    On line 616 you should see this,

    if( $echo )

    Try pasting this above that line,

    $out .= upb_bookmark_controls($add_text = 'Favorites', $delete_text = 'Remove Favorite', $wrapper = true);

    Posted 3 months ago #
  7. wesleysoccer
    Member

    thanks that added it here http://cl.ly/0P3Z3q2v3A2N3F3K1l3X

    Posted 3 months ago #
  8. Elliott
    Support

    Send us a link to your page.

    Posted 3 months ago #
  9. wesleysoccer
    Member

    you must be logged in to see the bookmark button...so click here http://bit.ly/wEnQPv
    here is a subscriber login:
    u-demo
    p-demo12

    Posted 3 months ago #
  10. Webtreats
    Support

    Hi wesleysoccer,

    Undo the changes you've made and then replace line # 615

    if( !empty( $meta_output ) )

    with this:

    $bookmark = upb_bookmark_controls($add_text = 'Favorites', $delete_text = 'Remove Favorite', $wrapper = true);
    $meta_output .= str_replace( '<div class="upb_add_remove_links">', '<span class="upb_add_remove_links">', str_replace( '</div>', '</span>', $bookmark ) );
    
    if( !empty( $meta_output ) )

    Then add the code below to your "Custom CSS" options here:

    http://mysitemyway.com/docs/index.php?title=General_Settings#Custom_CSS_and_Javascript

    .upb_add_remove_links{float: right;}

    Let us know if this resolves your issue.

    Posted 3 months ago #
  11. wesleysoccer
    Member

    Thanks so much guys...works great...your the best!

    Do you think it's possible to add an small icon next to the link inside of the php code or not?

    Posted 3 months ago #
  12. wesleysoccer
    Member

    Do you think it's possible to add an small icon within the code next to the link?
    Thanks again.

    Posted 3 months ago #
  13. Webtreats
    Support

    Hi wesleysoccer,

    Yes, it shouldn't be a problem.

    Just paste in the HTML mark-up for the icon you'd like to add.

    Posted 3 months ago #
  14. wesleysoccer
    Member

    Thanks...I tried a few things but getting error...ugh...

    Posted 3 months ago #
  15. Elliott
    Support

    It would look something like this,

    $bookmark = upb_bookmark_controls($add_text = 'Favorites', $delete_text = 'Remove Favorite', $wrapper = true);
    $meta_output .= '<img src = "link to your icon" />';
    $meta_output .= str_replace( '<div class="upb_add_remove_links">', '<span class="upb_add_remove_links">', str_replace( '</div>', '</span>', $bookmark ) );
    Posted 3 months ago #
  16. wesleysoccer
    Member

    Thanks works great...Last thing I'm trying to add the below code which works great in my header.php but for some reason will not work in framework.php...any reason why?

    <?php if ( !is_user_logged_in() ) { ?> Login To Bookmark <?php } ?>

    Posted 3 months ago #
  17. Webtreats
    Support

    Hi wesleysoccer,

    It should be working, can you paste in the full code so we can see the context in which you're using it.

    Posted 3 months ago #
  18. wesleysoccer
    Member

    I just added it like the above...nothing special just added the above code...

    Posted 3 months ago #
  19. Elliott
    Support

    Why are you wanting to add it in the framework.php file?

    Posted 3 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme