Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
Isak Engström
tagDiv Member

I understand. But you can’t push me in any direction?

Anyone else that can help me?

Isak Engström
tagDiv Member

Thanks! That worked!

/ Isak

Isak Engström
tagDiv Member

Hi,

I have the same question as momo, but I can’t get any help from the links you’ve posted above.

I’ve found the file “td-config.php” och added some new styles to it. The styles shows correctly in the Format-menu and it ads the correct CSS to the content, but the CSS don’t affect the content that it’s applied to.

On the “the Theme API”-page you linked to above it says: “The classes are defined inside ..\[theme_name]\includes\td_wp_booster_functions.php”. Do you mean the CSS-classes or what classes?

Excuse my lack of knowledge!
Thankful for help!

I’ve added the following code:

In td_config:

// columns text
td_api_tinymce_formats::add('td_text_columns',
array(
'title' => 'Text columns'
));
td_api_tinymce_formats::add('td_text_columns_0',
array(
'parent_id' => 'td_text_columns',
'title' => 'two columns',
'block' => 'div',
'classes' => 'td_text_columns_two_cols',
'wrapper' => true,
));
td_api_tinymce_formats::add('td_text_columns_1',
array(
'parent_id' => 'td_text_columns',
'title' => 'three columns',
'block' => 'div',
'classes' => 'td_text_columns_three_cols',
'wrapper' => true,
));

In style.css:

.td_text_columns_three_cols {
-webkit-column-count: 3;
-moz-column-count: 3;
column-count: 3;
-webkit-column-gap: 40px;
-moz-column-gap: 40px;
column-gap: 40px;
-webkit-column-rule-style: solid;
-moz-column-rule-style: solid;
column-rule-style: solid;
-webkit-column-rule-width: 1px;
-moz-column-rule-width: 1px;
column-rule-width: 1px;
-webkit-column-rule-color: #e9e9e9;
-moz-column-rule-color: #e9e9e9;
column-rule-color: #e9e9e9;
margin-bottom: 26px;
}
Isak Engström
tagDiv Member

Hi again,

I’ve now found the file “td-config.php” och added some new styles to it. The styles shows correctly in the Format-menu and it ads the correct classes to the content, but the CSS don’t affect the content that it’s applied to.

Any ideas of what’s wrong?

Example ‘three columns’

In td_config:
// columns text
td_api_tinymce_formats::add('td_text_columns',
array(
'title' => 'Text columns'
));
td_api_tinymce_formats::add('td_text_columns_0',
array(
'parent_id' => 'td_text_columns',
'title' => 'two columns',
'block' => 'div',
'classes' => 'td_text_columns_two_cols',
'wrapper' => true,
));
td_api_tinymce_formats::add('td_text_columns_1',
array(
'parent_id' => 'td_text_columns',
'title' => 'three columns',
'block' => 'div',
'classes' => 'td_text_columns_three_cols',
'wrapper' => true,
));

In style.css:
.td_text_columns_three_cols {
-webkit-column-count: 3;
-moz-column-count: 3;
column-count: 3;
-webkit-column-gap: 40px;
-moz-column-gap: 40px;
column-gap: 40px;
-webkit-column-rule-style: solid;
-moz-column-rule-style: solid;
column-rule-style: solid;
-webkit-column-rule-width: 1px;
-moz-column-rule-width: 1px;
column-rule-width: 1px;
-webkit-column-rule-color: #e9e9e9;
-moz-column-rule-color: #e9e9e9;
column-rule-color: #e9e9e9;
margin-bottom: 26px;
}

/ Isak

Viewing 4 posts - 1 through 4 (of 4 total)