?
Solved

Lineshift in wordpress, dosent work ?

Posted on 2011-03-23
15
Medium Priority
?
488 Views
Last Modified: 2012-05-11
Hi!

Why dosent lineshift in wordpress work ?

This driving me crazy....

Have tryed to use <br /> -> Dosent work ?

0
Comment
Question by:team2005
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 7
15 Comments
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 35198432
You need to download TinyMce Advanced. Then in the TinyMce settings check: stop WordPress from removing Breaks box.
0
 
LVL 2

Author Comment

by:team2005
ID: 35198617
Hi!

Ok, but cant find plugin menu in wordpress.
I am logged in as administrator. ???
0
 
LVL 23

Accepted Solution

by:
jeremyjared74 earned 2000 total points
ID: 35199034
If you don't see it in the left side menu, use this URL but replace www.yourwebsite with you actual site. Paste it into a browser and it will take you there:
http://www.yourwebsite.com/wp-admin/plugins.php
0
Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

 
LVL 2

Author Closing Comment

by:team2005
ID: 35199069
Thanks
0
 
LVL 2

Author Comment

by:team2005
ID: 35202515
Hi!

Sorry, where do i set this:
Then in the TinyMce settings check: stop WordPress from removing Breaks box. ???
0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 35202639
It is inside the red box in the bottom of the settings panel:
See image below:
 TinyMce
0
 
LVL 2

Author Comment

by:team2005
ID: 35202752
Hi!

Have set this, but still dosent work ?
0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 35202802
I will look for another solution. For now you can always force it by adding this where the break:
<br class="blank" />

Open in new window

0
 
LVL 2

Author Comment

by:team2005
ID: 35202822
Hi!

No, still dosent work ?

0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 35202840
Depending on your theme it may be getting removed by the functions.php file. If it is, you should find this in the functions.php:

function wpautop($pee, $br=1) {

Open in new window


Replace it with:
function wpautop($pee, $br=0) {

Open in new window

0
 
LVL 2

Author Comment

by:team2005
ID: 35202870
Cant find the line in functions.php ?
0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 35202876
I would have to see your theme code to be able to fix it. I have given every solution that would fix the problem.
0
 
LVL 2

Author Comment

by:team2005
ID: 35202952
Okey, here is the function.php code..


<?php

//
//  Custom Child Theme Functions
//

// I've included a "commented out" sample function below that'll add a home link to your menu
// More ideas can be found on "A Guide To Customizing The Thematic Theme Framework" 
// http://themeshaper.com/thematic-for-wordpress/guide-customizing-thematic-theme-framework/

// Adds a home link to your menu
// http://codex.wordpress.org/Template_Tags/wp_page_menu
//function childtheme_menu_args($args) {
//    $args = array(
//        'show_home' => 'Home',
//        'sort_column' => 'menu_order',
//        'menu_class' => 'menu',
//        'echo' => true
//    );
//	return $args;
//}
//add_filter('wp_page_menu_args','childtheme_menu_args');

// Unleash the power of Thematic's dynamic classes
// 
// define('THEMATIC_COMPATIBLE_BODY_CLASS', true);
// define('THEMATIC_COMPATIBLE_POST_CLASS', true);

// Unleash the power of Thematic's comment form
//
// define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);

// Unleash the power of Thematic's feed link functions
//
// define('THEMATIC_COMPATIBLE_FEEDLINKS', true);



function curPageURL() {
 $pageURL = 'http';
 if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
 $pageURL .= "://";
 if ($_SERVER["SERVER_PORT"] != "80") {
  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
 } else {
  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 }
 return $pageURL;
}


function my_footer($thm_footertext) {
	$thm_footertext = 'Design, utvikling og publiseringsløsning levert av <a href="http://aie.no" target="_blank">Alt i ett reklamebyrå</a>';
	return $thm_footertext;
}
add_filter('thematic_footertext', 'my_footer');

/* Meny over header */
function remove_thematic_actions() {
    remove_action('thematic_header','thematic_access',9);
    remove_action('thematic_header','thematic_blogdescription',5);
    remove_action('thematic_header','thematic_blogtitle',3);
    
}
add_action('wp','remove_thematic_actions');

/* -Meny over header- */

function childtheme_favicon() { ?>
	<link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/images/favicon.png"/>
<?php }
add_action('wp_head', 'childtheme_favicon');

function accesstop() {
    echo '<div id="access-top">&nbsp;</div>';
}



function accessbottom() {
    echo '<div id="access-bottom">&nbsp;</div>';
}

function additional_header_content() {
?>


<a href="/"><img id="logo" alt="logo" src="<?php echo bloginfo('stylesheet_directory') ?>/images/logo.png" /></a>
<?php
}


function new_header() {

    remove_action('thematic_header','thematic_brandingopen',1);
    
    remove_action('thematic_header','thematic_access',9);
    
}
add_action('init', 'new_header');
add_action('thematic_header','accesstop',1);
add_action('thematic_header','thematic_access',2);
add_action('thematic_header','thematic_brandingopen',3);
add_action('thematic_header', 'additional_header_content', 4);
add_action('thematic_header','thematic_brandingclose',5);
add_action('thematic_header','accessbottom',6);



function topbar() {
echo '<div id="topbar_wrap"><div id="topbar">';
	include (TEMPLATEPATH . '/searchform.php');
echo '</div></div>';
}
add_action('thematic_before', 'topbar', 6);

function kreactor_search_form() {
	$search_form = "\n" . "\t";
	$search_form .= '<form id="searchform" method="get" action="' . get_bloginfo('home') .'"><div>';
	$search_form .= "\n" . "\t" . "\t". "\t";
	$search_form .= '<input type="text" value="Søk på kreactor.no" onfocus="if (this.value == \'Søk på kreactor.no\') {this.value = \'\';}" onblur="if (this.value == \'\') {this.value = \'Søk på kreactor.no\';}" name="s" id="s" size="50" tabindex="1" />';
	$search_form .= '<input id="searchsubmit" name="searchsubmit" type="submit" value="" tabindex="2" />';
	$search_form .= "\n" . "\t" . "\t";
	$search_form .= '</div></form>';

	return $search_form;
}
add_filter('thematic_search_form', 'kreactor_search_form');

function splashtop() {
if(is_front_page()){
    echo '<div id="splashtop"></div>';
}}
add_action('thematic_belowheader','splashtop');

function splash() {
if(is_front_page()){
   // echo '<div id="splash"><img width="940px" alt="Vi benytter virkemidler fra teatret til å bygge levende bedriftskulturer" src="wp-content/themes/kreActor/images/splash.jpg" /></div>';

    echo '<div id="splash" style="background-image: url(wp-content/themes/kreActor/images/splash.jpg); height:300px; width: 940px;" align="center"><br><br><br><br>Vi bygger levende bedriftskulturer<br>med praktisk trening<br>kreaktiv kapasitet og<br>faglig kompetanse</div>';
}}
add_action('thematic_belowheader','splash');

function splashbunnen() {
if(is_front_page()){
    echo '<div id="splashbunnen"></div>';
}}
add_action('thematic_belowheader','splashbunnen');

function referanser_func() {
	return lpbc('categories=9');
}
add_shortcode('referanser','referanser_func');

if ( function_exists('register_sidebar') )
	register_sidebar(array(
	'name' => 'underheadbar',
	'before_widget' => '<div class=\'slicer_tilp\'></div>',
	'after_widget' => '',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));

function underheadbokser() {
if(is_front_page()){

    

    echo '
    <div id="underheadbokser">';
echo '<span id="boks1"><h3>Hva vi tilbyr</h3>';
wp_nav_menu( array( 'menu' => 'hva_vi_tilbyr' ) );
echo '</span>';
    	
    	if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("underheadbar") ) :

		endif; 
		
    	echo
    	'<div class="clear"></div>
    </div>';


}
}
add_action('thematic_belowheader','underheadbokser');

function cssfix() {
echo '<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="/kreactor/wp-content/themes/kreActor/ie6.css" />
<![endif]-->
';
}
add_action('wp_head','cssfix');

// function maintop() {
//    echo '<div id="main-top">&nbsp;</div>';
// }
// add_action('thematic_belowheader','maintop');


 function mainbottom() {
    echo '<div id="main-bottom">&nbsp;</div>';
 }
 add_action('thematic_abovefooter','mainbottom');


?>

Open in new window

0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 35203163
OK, I think I've got it. You need to remove this from the thematic "Main Theme"
add_filter( 'archive_meta', 'wpautop' );
Here is the code without it:
<?php

// Getting Theme and Child Theme Data
// Credits: Joern Kretzschmar

$themeData = get_theme_data(TEMPLATEPATH . '/style.css');
$thm_version = trim($themeData['Version']);
if(!$thm_version)
    $thm_version = "unknown";

$ct=get_theme_data(STYLESHEETPATH . '/style.css');
$templateversion = trim($ct['Version']);
if(!$templateversion)
    $templateversion = "unknown";

// set theme constants
define('THEMENAME', $themeData['Title']);
define('THEMEAUTHOR', $themeData['Author']);
define('THEMEURI', $themeData['URI']);
define('THEMATICVERSION', $thm_version);

// set child theme constants
define('TEMPLATENAME', $ct['Title']);
define('TEMPLATEAUTHOR', $ct['Author']);
define('TEMPLATEURI', $ct['URI']);
define('TEMPLATEVERSION', $templateversion);


// set feed links handling
// If you set this to TRUE, thematic_show_rss() and thematic_show_commentsrss() are used instead of add_theme_support( 'automatic-feed-links' )
if (!defined('THEMATIC_COMPATIBLE_FEEDLINKS')) {	
	if (function_exists('comment_form')) {
		define('THEMATIC_COMPATIBLE_FEEDLINKS', false); // WordPress 3.0
	} else {
		define('THEMATIC_COMPATIBLE_FEEDLINKS', true); // below WordPress 3.0
	}
}

// set comments handling for pages, archives and links
// If you set this to TRUE, comments only show up on pages with a key/value of "comments"
if (!defined('THEMATIC_COMPATIBLE_COMMENT_HANDLING')) {
	define('THEMATIC_COMPATIBLE_COMMENT_HANDLING', false);
}

// set body class handling to WP body_class()
// If you set this to TRUE, Thematic will use thematic_body_class instead
if (!defined('THEMATIC_COMPATIBLE_BODY_CLASS')) {
	define('THEMATIC_COMPATIBLE_BODY_CLASS', false);
}

// set post class handling to WP post_class()
// If you set this to TRUE, Thematic will use thematic_post_class instead
if (!defined('THEMATIC_COMPATIBLE_POST_CLASS')) {
	define('THEMATIC_COMPATIBLE_POST_CLASS', false);
}
// which comment form should be used
if (!defined('THEMATIC_COMPATIBLE_COMMENT_FORM')) {
	if (function_exists('comment_form')) {
		define('THEMATIC_COMPATIBLE_COMMENT_FORM', false); // WordPress 3.0
	} else {
		define('THEMATIC_COMPATIBLE_COMMENT_FORM', true); // below WordPress 3.0
	}
}

// Check for WordPress mu or WordPress 3.0
define('THEMATIC_MB', function_exists('get_blog_option'));

// Create the feedlinks
if (!(THEMATIC_COMPATIBLE_FEEDLINKS)) {
	add_theme_support( 'automatic-feed-links' );
}

// Check for WordPress 2.9 add_theme_support()
if ( apply_filters( 'thematic_post_thumbs', TRUE) ) {
	if ( function_exists( 'add_theme_support' ) )
	add_theme_support( 'post-thumbnails' );
}

// Load jQuery
wp_enqueue_script('jquery');

// Path constants
define('THEMELIB', TEMPLATEPATH . '/library');

// Create Theme Options Page
require_once(THEMELIB . '/extensions/theme-options.php');

// Load legacy functions
require_once(THEMELIB . '/legacy/deprecated.php');

// Load widgets
require_once(THEMELIB . '/extensions/widgets.php');

// Load custom header extensions
require_once(THEMELIB . '/extensions/header-extensions.php');

// Load custom content filters
require_once(THEMELIB . '/extensions/content-extensions.php');

// Load custom Comments filters
require_once(THEMELIB . '/extensions/comments-extensions.php');
 
// Load custom discussion filters
require_once(THEMELIB . '/extensions/discussion-extensions.php');

// Load custom Widgets
require_once(THEMELIB . '/extensions/widgets-extensions.php');

// Load the Comments Template functions and callbacks
require_once(THEMELIB . '/extensions/discussion.php');

// Load custom sidebar hooks
require_once(THEMELIB . '/extensions/sidebar-extensions.php');

// Load custom footer hooks
require_once(THEMELIB . '/extensions/footer-extensions.php');

// Add Dynamic Contextual Semantic Classes
require_once(THEMELIB . '/extensions/dynamic-classes.php');

// Need a little help from our helper functions
require_once(THEMELIB . '/extensions/helpers.php');

// Load shortcodes
require_once(THEMELIB . '/extensions/shortcodes.php');

// Adds filters for the description/meta content in archives.php
add_filter( 'archive_meta', 'wptexturize' );
add_filter( 'archive_meta', 'convert_smilies' );
add_filter( 'archive_meta', 'convert_chars' );
// Remove the WordPress Generator - via http://blog.ftwr.co.uk/archives/2007/10/06/improving-the-wordpress-generator/
function thematic_remove_generators() { return ''; }
if (apply_filters('thematic_hide_generators', TRUE)) {  
    add_filter('the_generator','thematic_remove_generators');
}

// Translate, if applicable
load_theme_textdomain('thematic', THEMELIB . '/languages');

$locale = get_locale();
$locale_file = THEMELIB . "/languages/$locale.php";
if ( is_readable($locale_file) )
	require_once($locale_file);


?>

Open in new window

0
 
LVL 2

Author Comment

by:team2005
ID: 35203239
Hi!

Still, dosent work ?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question