WordPress.org

Ready to get started?Download WordPress

Forums

Spun
[resolved] Show post title on custom circles (21 posts)

  1. infobiac
    Member
    Posted 6 months ago #

    Hi,
    I installed the custom circles mod, and now am trying to get the titles I used show on top of the pictures, as was an option when I was just using posts. Anyone know how to do this?

  2. Andrew
    Forum Moderator
    Posted 6 months ago #

    Can you replace all of the code in your content-custom-circles.php file with the code in this PasteBin page: http://pastebin.com/kW1Bkv90

    Then:

    1. Create a folder in your Child Theme and name that folder "js"
    2. In your "js" folder of your Child Theme create a new file called "text-in-circles.js".
    3. Into that "text-in-circles.js" file add the code from this PasteBin page: http://pastebin.com/knH83C5e
    4. In your Child Theme functions.php file just after this line:
      add_action( 'wp_enqueue_scripts', 'enqueueReorderCustomCircles' );

      Add the following code:

      function textInCircles() {
              wp_enqueue_script( 'text-in-circles', get_stylesheet_directory_uri() . '/js/text-in-circles.js', '', '1.0', true );
      }
      
      add_action( 'wp_enqueue_scripts', 'textInCircles' );
  3. infobiac
    Member
    Posted 6 months ago #

    Thank you that worked well for me. Is there no way for the text to show up over the image though, like it originally did?

  4. infobiac
    Member
    Posted 6 months ago #

    Also, this seems to be interfering with the ordering, as I installed that in my js as well. Is there anyway to have both.

  5. Andrew
    Forum Moderator
    Posted 6 months ago #

    Thank you that worked well for me. Is there no way for the text to show up over the image though, like it originally did?

    Sorry, what didn't work?

    as I installed that in my js as well.

    What do you mean by this?

    Also, this seems to be interfering with the ordering,

    Is this affecting another modification? If so, which?

  6. infobiac
    Member
    Posted 6 months ago #

    I meant that the post title shows up, but under the circle, whereas in the original theme, the post title shows up within the circle in white font; I was just wondering if that could be accomplished. And by the two other questions I meant that I have this mod installed: http://wordpress.org/support/topic/custom-circles-order, and its no longer working.

  7. Andrew
    Forum Moderator
    Posted 6 months ago #

    And by the two other questions I meant that I have this mod installed: http://wordpress.org/support/topic/custom-circles-order, and its no longer working.

    Yes, I didn't add the order in because I didn't know you wanted it, or were using that code. I'll give you the right code after we sort this issue out.

    Let's see your website about the title under the circles issue

  8. infobiac
    Member
    Posted 6 months ago #

    Alright thanks so much. Heres the link: http://thetearoomchocolates.com/

  9. Andrew
    Forum Moderator
    Posted 6 months ago #

  10. infobiac
    Member
    Posted 6 months ago #

    No I don't think so. I just created the child theme as laid out by wordpress here: http://codex.wordpress.org/Child_Themes

  11. Andrew
    Forum Moderator
    Posted 6 months ago #

    Can you replace all the code in your Child Theme content-custom-circles.php file with the code from this PasteBin page: http://pastebin.com/w8BKhhT9 ?

  12. infobiac
    Member
    Posted 6 months ago #

    Alright done. Thanks that's exactly what I meant. For some reason the spacing is a little off; that's only a minor problem though. And to address the ordering issue, should I just go through the different content-custom circles and copy over the differences?

  13. Andrew
    Forum Moderator
    Posted 6 months ago #

    And to address the ordering issue, should I just go through the different content-custom circles and copy over the differences?

    If you know what you're doing. I'd just focus on the issue you still say you have for now, "For some reason the spacing is a little off".

  14. Andrew
    Forum Moderator
    Posted 6 months ago #

    I think you can get rid of your "text-in-circles.js" file and also get rid of the code in the Child Theme functions.php file that's calling to it:

    function textInCircles() {
            wp_enqueue_script( 'text-in-circles', get_stylesheet_directory_uri() . '/js/text-in-circles.js', '', '1.0', true );
    }
    
    add_action( 'wp_enqueue_scripts', 'textInCircles' );
  15. infobiac
    Member
    Posted 6 months ago #

    Yea that fixed the spacing issue completely. Thank you very much.

  16. Andrew
    Forum Moderator
    Posted 6 months ago #

    Are you okay with the order issue?

  17. infobiac
    Member
    Posted 6 months ago #

    I can try to figure it out for now. Thank you very much for all your help; I'd love to offer you a couple free chocolate bars if you'd like to shoot me an email at [Redacted by andrew]

  18. Andrew
    Forum Moderator
    Posted 6 months ago #

    Sorry I've had to redact your email address here, you'd end up just getting a lot of spam from these forums.

    The great thing about volunteers is the reward they seek is a "thank you" and that's it.

  19. infobiac
    Member
    Posted 6 months ago #

    Alright well then thank you very much!

  20. Andrew
    Forum Moderator
    Posted 6 months ago #

    Just to hint; the order issue is regarding the "content-custom-circles.php" file and here's a good tool for comparing file versions: http://diffchecker.com

  21. infobiac
    Member
    Posted 6 months ago #

    Thank you for all your help. I'll check it out.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.