Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] How can I disable lines joining?


  #1  
Old Nov 7, 2012, 04:17 PM
arteny
 
22 posts · Nov 2012
Russia, Voronezh
Server [SOLVED] How can I disable lines joining?

I don't like that posts are shown with cut line breaks (\r\n) on main page. How can I show them as is with line breaks?
Thanks for help.
  #2  
Old Nov 7, 2012, 05:11 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you will have to explain this a bit more and point to an example.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 8, 2012, 02:47 AM
arteny
 
22 posts · Nov 2012
Russia, Voronezh
Quote:
Originally Posted by juggledad
you will have to explain this a bit more and point to an example.
juggledad, examples are on each blog with this theme.
For example my post consist from following 2 lines:
Line 1.
Line 2.

As result this post on main page will be shown as:
Line 1. Line 2.
  #4  
Old Nov 8, 2012, 03:47 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what you are seeing is an 'excerpt' vrs the full post. you should read about the_excerpt() in teh WordPress codex
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Nov 11, 2012, 02:41 PM
arteny
 
22 posts · Nov 2012
Russia, Voronezh
So, I found solution.
It is necessary to replace
//$content = get_the_content('');
$content = get_the_content_with_formatting('');
in bfa_excerpt,

where

function get_the_content_with_formatting ($more_link_text = '') {
$content = get_the_content($more_link_text);
$content = apply_filters('the_content', $content);
// add your modifications from here
echo $content;
}

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable comments Harald Comments, trackbacks & pings 7 Nov 25, 2013 05:39 PM
[SOLVED] Disable Like windy Center area post/pages 2 Dec 13, 2011 09:41 AM
disable single post pages & disable link in post titles jen Center area post/pages 0 Jan 11, 2010 02:09 PM
If you disable the blog title...? Danielwerner Header configuration & styling 1 Nov 15, 2009 07:06 PM


All times are GMT -6. The time now is 08:13 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.