Forum Replies Created

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter dynamitri

    (@dynamitri)

    OK, I’m halfway there. I managed to get the \ in the desired place by injecting prana_entry_meta_sep into the utility.php file, as per following:

    /** Prana Post Date */
    function prana_post_date() {
    
    $post_date = esc_html( get_the_date() ) . ( prana_entry_meta_sep() );
    
    	/** Output */
    	$output = sprintf( '<span class="entry-date" title="%1$s"><a href="%2$s" title="%3$s" rel="bookmark">%1$s</a></span>', $post_date, esc_url( get_permalink() ), the_title_attribute( 'echo=0' ) );
    	return $output;
    }

    however, right now – as can be seen at http://www.dynamitri.pl, the date itself is preceded by

    \">

    Try as I might, I cannot seem to be able to get rid of that part of the code that cropped up magically as soon as I entered the prana_post_date() function.

    Any idea what to do to clean up the code? Any suggestions will be greatly appreciated.

    Thanks!

    Thread Starter dynamitri

    (@dynamitri)

    Thanks, but that pretty much has done what hard-coding it into the content.php file would (attempted it before but reverted the changes) – i.e. there is a difference in spacing between the first “\” and the next one. As per http://www.dynamitri.pl. No idea why this is happening or why the backslash after the date wouldn’t show up on its own.

    I’ll be looking into the child themes, thanks. Would like to have it resolved first, though, so that I know at least how to proceed in the future without undue delays.

    Many thanks for the help, nonetheless – really appreciated.

    Best,

    D.

    Thread Starter dynamitri

    (@dynamitri)

    OK, thanks, no problem – we all make mistakes, I have been trying to respond to you in the other but that got locked up before I sent my reply. Really appreciated for reopening and the link, will seek help there as well.

    Thread Starter dynamitri

    (@dynamitri)

    Xavortm: Sorry, I’m not sure if you got me right as your suggestion is completely unrelated to my problem (or so I think). Let me reiterate:

    The top of the post looks as following:

    1 SIERPNIA 2013 18:10CATEGORIES: BEZ KATEGORII \ DYNAMITRI \ EDIT

    (at least that’s how I see it, probably you can’t see the “\ EDIT” bit as I’m the admin with additional privileges)

    the date/time is glued to the categories and looks as following:

    1 SIERPNIA 2013 18:10CATEGORIES: BEZ KATEGORII \

    I want it to be like the next part of the meta data on top of the post, which is

    CATEGORIES: BEZ KATEGORII \ DYNAMITRI

    As per the code lifted off my content.php file, and quoted in my initial post:

    CATEGORIES: BEZ KATEGORII \ DYNAMITRI is
    prana_post_category() . prana_post_author() .

    Then
    1 SIERPNIA 2013 18:10CATEGORIES: BEZ KATEGORII \ is
    prana_post_date() . prana_post_category() .

    Which, to my eyes, looks as it is following the same pattern. However, prana_post_date() . seems not to generate the meta entry separator at the end of it.

    Oddly enough, prana_post_category() ., prana_post_author() . and virtually any other prana_post_ function (_tags, _style etc.), all seem to generate the meta entry separator at their respective ends. Not sure why this is the case for virtually all of them, but the date function.

    I’m aiming to have the meta entry separator after the date (i.e. , the prana_post_date() . function), not to have it removed… since, well, it’s not there where I want to to be as of now.

    In other words, I want the top of the post to look like:

    1 SIERPNIA 2013 18:10 \ CATEGORIES: BEZ KATEGORII \
    (desired)

    Whereas now it looks the following:

    1 SIERPNIA 2013 18:10CATEGORIES: BEZ KATEGORII \
    (not desired)

    At the same time, I want to rely on the code, not on enforcing the backslash by hard-coding it into the content.php file. For some odd reason, the spacing around the “\” coming as a result of using the functions, is a bit larger than the one that comes from using regular backslash surrounded by regular spaces (i.e. there is discrepancy in spacing resulting from using hard-coded “\” in one place, and code-generated meta entry separators in the other). This is even more noticeable when two different type of backslashes, for the lack of a better word, are so close to each other.

    Sorry, might have not made it clear, hopefully the post above outlines clearly what is it that I’m trying to achieve.

    Many thanks for the help – really appreciated.

    Best,

    D.

    Thread Starter dynamitri

    (@dynamitri)

    BOOM!

    You’re a star. Thanks a lot! :-)))

    Thread Starter dynamitri

    (@dynamitri)

    OK, well, I don’t have the Appearance -> Edit CSS option for some reason, but I have copy/pasted the code at the bottom of the style.css file in Editor – and exactly what I was afraid of has happened: it removed all the entry meta separators across the whole post. Not really what I was intending to do – I just want to have the entry meta separator gone at the bottom of the post, where the link for comments is.

    I’m happy with the date and tags being divided by the entry meta separators (backslashes) as they are now at http://www.dynamitri.pl. I just want the backslash gone from the bottom of the post, where it says

    "\ 0 KOMENTARZY - DODAJ"

    When I enter the code you have kindly provided (really appreciated), it doesn’t really solve my problem, as it removes the entry meta separators at the bottom and the top of the post – in other words: across the whole post, which is not really what I’m aiming for.

    Again, thanks – but any other tips would be greatly appreaciated.

    Kind regards,

    Dynamitri

    Thread Starter dynamitri

    (@dynamitri)

    Hi stacyduval,

    Thanks for the reply. Really appreciated. What CSS file should I place that in exactly and where, and should it be with the ‘ marks you’ve provided or not? I don’t see a file called custom.css unfortunately, sorry, a bit confused here.

    Also, I’m a bit concerned it might remove all the entry meta separators outright, while I would like to keep them at the top of my post, as indicated – and only have them removed from the comment link at the bottom. But I am willing to give it a try and to see what happens.

    Thanks!

    D.

    Did you replace any code in particular? Sorry, I’m still quite new to WordPress – maybe you could just PM me the code or paste it here, so that I know exactly where it needs to go.

    Hope that’s not too much of a problem! Thanks!

    Yo,

    Sorry, I can’t really offer much help here, but – if you don’t mind me asking – where di you put the code from the post above mine? Seems I’m trying to do the same thing, I want blog posts on my main page to display number of facebook comments – however, it seems to display the WordPress comments only. I’ve added 2 facebook comments to a test note at http://www.dynamitri.pl now and it doesn’t seem to recognise them in the count.

    Any suggestions you could offer?

    Many thanks,

    D.

    Wow, is anyone actually still visiting this Forum?

    Thread Starter dynamitri

    (@dynamitri)

    Just for the sake of clarity – I want to remove WordPress comments and replace them with FB comments. I have found a plug-in that turns off WordPress comments but it’s not what I want to do, really. I think what I need will require deleting some code, somewhere, but as I’m quite new to WordPress in general, I’m not really too sure where the bits I would have to delete are located.

    Also, it seems that my Facebook Comment box appears down at the very bottom – even though there is no spacing in the code itself, in the single.php file. Does anyone know what I should do?

    Thanks!

Viewing 11 replies - 16 through 26 (of 26 total)