WordPress.org

Ready to get started?Download WordPress

Forums

I Recommend This
[resolved] I reccomend this not showing up on home page (single page/category pages works!) (21 posts)

  1. Marjolijn Harvey
    Member
    Posted 1 year ago #

    I'm working on a website and the 'i recommend this' heart is working great on their category page or single posts, but not on the home page..
    It does not show up at all...
    I did play around with position relative to all of the bits on the post footer, so I thought maybe it was 'hiding' behind the gallery, but looking in the code with firebug it really is not there at all..
    In my settings I have it set up to Automatically display on both Posts and All other pages like Index, Archive, etc. (both are ticked)

    Do you know what the problem might be?
    Oh and theme used is Weaver II Pro, maybe they've changed something in the way the homepage is called?

    Cheers

    http://wordpress.org/extend/plugins/i-recommend-this/

  2. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    Hello Maroline,

    Sorry for the late reply. Sometimes if Home page is set as frontpage, this causes issue.

    Can you please try placing the below code in the template of your home page.
    <?php if( function_exists('dot_irecommendthis') ) dot_irecommendthis(); ?>

  3. Marjolijn Harvey
    Member
    Posted 1 year ago #

    Hi Harish,

    Thanks for that, I tried that but it didn't make any difference..
    Is there anything else I could try?

  4. Marjolijn Harvey
    Member
    Posted 1 year ago #

    Hi Harish,

    Thanks for your reply!
    I tried that but it didn't make any difference...
    Is there anything else I could try?

    Thank you :)

  5. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    I am right now testing the code on one of my websites to recreate the ssue and will get back asap.

  6. Marjolijn Harvey
    Member
    Posted 1 year ago #

    Thanks Harish!

    Not sure if the theme is creating the/a problem too, I use Weaver Pro, this is the free version which works the same without the Pro add-ons: http://wordpress.org/extend/themes/weaver-ii

  7. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    @mafgirl,

    I checked at my end again and it works. I took a quick look at the theme code http://themes.svn.wordpress.org/weaver-ii/1.3.2/index.php.

    This theme is really complicated. Due to the way its setup, you would have to manually edit files with file names starting with content-"*".

    As you can see, I set my blog as my sites home page http://www.harishchouhan.com/ and it worked.

  8. Marjolijn Harvey
    Member
    Posted 1 year ago #

    Hi Harish,

    Thanks for your reply.
    So you are saying I'd have to manually edit all files with file names starting with content-"*", which including content.php are 16 files altogether. Do you mean adding in the code <?php if( function_exists('dot_irecommendthis') ) dot_irecommendthis(); ?> like you mentioned above in all of them? Any particular area ie start of document, end of document? I will wait for your reply before I try this in case it's not what you mean and it messes up the code in the theme.

    I had a look at your site above and see that it works, you are not using weaver though are you?

    Thanks ever so much for your support!!

  9. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    Hi again.

    Hard to say exactly where to put it. If you are familiar with WordPress loops, then right after the the_content(), you can place the code I told you earlier.

    Your theme supports different post formats, hence I would suggest trying with say just content-link, or content-video and then testing it.

  10. watercolourz
    Member
    Posted 1 year ago #

    hi mafgirl,

    i need your help.
    i was searching to modify registration page of a another plugin named 'Job Manager' and found your post over there [one year old] with same question. Can you please help me if you had success in modifying the registration page and getting it auto-fill in apply form. I'll be greatly thankful to you. If not here, You can share your reply at my mail id - [ redacted ]
    Since this is a different thread, so my sincere apologies.

    Regards,
    Neel

  11. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    any luck with your website Maroline?
    Also I noticed on your single post page in Chrome, its hard to click the heart icon.

  12. Marjolijn Harvey
    Member
    Posted 1 year ago #

    Hi Harish,

    Thanks, it worked by putting the code into content.php (didn't need to use the others).
    However, we wanted to show the like heart at the bottom of the page and used position relative to achieve this. It works on the home page and single pages, but for some reason, the like heart is related to the top of the post in categories, so when I put in position relative, whether I put bottom: --px or top --px, it still relates to the top of the page so if the post is longer or shorter, the heart does not move with it.
    It is weird because on the home page and single post pages this is not the case and it does stay at the bottom of the page, so I am not sure why it is that way, would you know a way to fix this at all?
    For now I've left the like heart at the top of the page, see example here: http://www.lecoeurdemamaison.com/category/lifestyle/

    Thanks Harish!

    PS watercolourz, I've emailed you

  13. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    Hi again,

    I tried this using just the inspect element tool in chrome, and it worked but not 100% sure.

    To position things correct, first give the .entry-content class a relative position

    .entry-content { position: relative; }

    .dot-irecommendthis {
    right: 0px !important;
    position: absolute !important;
    bottom: -77px !important;
    z-index: 999;
    }

    The position of the link then has to be absolute to be able to precisely place it. The z-index property will make it a level above the other elements which would make clicking it possible.

  14. Marjolijn Harvey
    Member
    Posted 1 year ago #

    Harish, this is great!
    worked like a dream thank you so much!!!
    All resolved ;)

  15. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    good to know. Good luck with the site.

  16. mijefe
    Member
    Posted 1 year ago #

    Harish,

    I would like to do the same thing but the framework of my theme appears to be a bit different then Mafgirl's Theme.

    My theme is set up as this blog here - http://onioneyethemes.com/yin-and-yang/blog/

    If you could help we would be able to launch our website today! Thanks in advance!

    Best

    -M

  17. mijefe
    Member
    Posted 1 year ago #

    Harish,

    Just to clarify - The same thing as in " Place a heart on each photo" on front of the blog under each photo, not just when you click into a photo blog post.

  18. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there,

    can you let me know if you have activated the theme and set it up? Also can you send me a screenshot of where exactly u want the heart to display?

  19. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    Also please do visit http://www.dreamsonline.net/wordpress-plugins/i-recommend-this/ to add your answer as there I would be able to know when you replied much faster.

  20. mijefe
    Member
    Posted 1 year ago #

    The website I am building is private, should I email you here [ redacted, do not post other people's e-mail address here ] instead?

  21. mijefe
    Member
    Posted 1 year ago #

    We just send you a email to you with login info to take a look at it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic