What file would I find the following meta information? See image.
Meta File
(19 posts)
(3 voices)
-
Posted 3 months ago #
-
Hello wesleysoccer,
The file is
/wp-content/themes/infocus/framework.php.Posted 3 months ago # -
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 # -
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 # -
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 # -
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 # -
thanks that added it here http://cl.ly/0P3Z3q2v3A2N3F3K1l3X
Posted 3 months ago # -
Send us a link to your page.
Posted 3 months ago # -
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-demo12Posted 3 months ago # -
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 # -
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 # -
Do you think it's possible to add an small icon within the code next to the link?
Thanks again.Posted 3 months ago # -
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 # -
Thanks...I tried a few things but getting error...ugh...
Posted 3 months ago # -
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 # -
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 # -
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 # -
I just added it like the above...nothing special just added the above code...
Posted 3 months ago # -
Why are you wanting to add it in the framework.php file?
Posted 3 months ago #
Reply
You must log in to post.













