This topic has 9 replies, 3 voices, and was last updated 8 years by Andrei.

  • Author
  • #88592
     willypunch
    Participant

    Hi,

    I have taken over a site to finish styling. I am having a problem with the Facebook login feature. Whenever logging in from wp-admin I get the pop up which asks for the Facebook details, but afterwards I don’t get logged in and redirected and just stay on the wp-admin page.

    The URL looks like this:

    wp-login.php?redirect_to=http%3A%2F%2Fwillypunch.com%2Fwp-admin%2F&reauth=1

    My next question is with regards to creating a custom post and category templates. I have a category named “comics”. I would like to make a custom template for the category, and a custom template for all single posts with that category.

    I can code in PHP but would like some technical help on how to get started with that.

     

    Thank you.

    #88789
     Radu
    Moderator

    Hi,

    For replacing the category template you can duplicate the archive.php file into category-SLUG.php or category-ID.php and this will be replace the replace certain category.

    For replacing just for some posts of some category will implies more tweaks to the templating system, you can view few details over here : https://wordpress.org/support/topic/how-to-change-single-post-template-based-on-category

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #88943
     willypunch
    Participant

    Hi Radu,

    Thanks for the help. I will try to make the templates with the resources you sent.

    I have a question though, I couldn’t find where the posts are being generated. For example if I add text or code from single.php nothing would make a difference to the output on the front end. Is there any specific files I need to check?

    Also do you have any suggestions about the Facebook login I mentioned in my original message?

    Kind regards

    #89034
     Radu
    Moderator

    Hi,

    Please do a research on the ‘get_template_part()’ wordpress function and learn what it does and how to follow it trough theme template files. In this case the loop are generated on content.php and all content-* files within the theme.

    Regarding the facebook login i’ve tried on you wp-admin http://willypunch.com/wp-admin and it works after i’ve logged in with facebook i was redirected here : http://willypunch.com/members/radu-adrian-octavian/profile/edit/group/1/?fb=registered

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #89992
     willypunch
    Participant

    Hi Radu,

    Thanks for the help.

    I have a question with regards to the Kleo like feature. I have now created a custom page template which I use database functions to get some post data which I wanted to show. From the database query I use a foreach loop to print the data. What I wanted to do was also call the like feature. I tried this:

    do_action(‘kleo_show_love’);

    This appears and I can click it to increment the like count however, it will update every post in the foreach loop that I am calling.

    The HTML looks a bit like this:

    <span class=”item-likes-count”>1</span> <span class=”item-likes-postfix”></span>

    I think the problem is that whenever I call ‘kleo_show_love’ the HTML which is produced always gives the same id:

    id=”item-likes-7142″

    Is there any way I can pass this through on my custom template?

    Thanks

    #90011
     willypunch
    Participant

    Hi Radu,

    I also have a question about the Facebook login. If you try to log in for the first time the redirect works correctly. however if you try to sign in another time with the same Facebook account the redirect didn’t work for me. Please can you see if that happens for you?

    Kind regards,

    #90453
     willypunch
    Participant

    Hi Radu,

    I have a question about the responsive menu. On desktop when resizing the browser window and in the mobile menu, if there is a sub menu you can hover over the link/caret to show the sub menu. What is the best way to make it so that only click works instead of hover?

    Kind regards,

    #92148
     Andrei
    Moderator

    Hi Willy, unfortunately there is no way easy option to change the hover to click only.

    Please let me know if I can help you with anything else.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #92748
     willypunch
    Participant

    Hi Andrei,

    Is it difficult to change this through the javascript code?

    Thanks,

    #92946
     Andrei
    Moderator

    The menu already has some js on top of it from the bootstrap framework, so overriding it should be possible but I don’t know it will be easy / straight forward.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 10 posts - 1 through 10 (of 10 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?