Support » Theme: Spun » Show post title on custom circles

  • Resolved infobiac

    (@infobiac)


    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?

Viewing 15 replies - 1 through 15 (of 20 total)
  • Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    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' );

    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?

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

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    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?

    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.

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    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

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

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

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

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    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 ?

    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?

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    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”.

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    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' );

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

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    Are you okay with the order issue?

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Show post title on custom circles’ is closed to new replies.