Hello,
Please add this code inside the theme panel-> custom css box:
.single-post iframe.e-embed-frame{
width:initial!important;
}
Thank you!
Hello,
It is an implementation needed for the tagdiv composer. If the plugin is active on your site, the code will be present. It is for the live css edit inside the tagdiv composer page builder.
Thank you!
Hello shaial,
That code should have to be added to Custom CSS area in Theme panel.
Thanks for the message!
Hi – is there a way of hiding the author image/avatar in the author card, and not leaving a gap where the image would be? I can easily hide the image with CSS but of course there’s a hole where it went, which looks a bit silly.
In addition – would it be possible to hide (and not leave a gap) *only* if no image/avatar is set?
Thanks!
After multiple attempts*, I can’t solve the problem of the search icon position, always on a second line.
So I go back to version 8.2
Is there a real solution?
Thanks
JL Cougy (jl.cougy@gmail.com)
* 8.6 Update via FTP – Save in the theme panel to regenerate the CSS cache of the theme – Clear Cache
Site : https://www.enrevenantdelexpo.com/
Header Style 3
Custom CSS :
.td-header-header {
background-image: url(“https://www.enrevenantdelexpo.com/wp-content/uploads/2018/01/En-revenant-de-lexpo_Blog-2018.jpg”
);
background-repeat: no-repeat;
}
.td-header-menu-wrap-full{
height:30px!important;
}
#td-header-menu{
min-height: 30px!important;
}
.sf-menu > li > a{
line-height: 30px!important;
}
.td-main-menu-logo{
height:30px!important;
}
.home .td-main-page-wrap{
padding-top:0!important
}
.td-header-gradient:before{
display:none!important
}
Hello,
1. Please use word spacing if you do not filter the excerpts based on letters. The theme excerpts need to be cut by letters or words. If you cut them by words, and do not use spacing between letters, they will think it is a single word and cannot cut it properly.
2. Please check your fonts section under modules. Change the font size for the module selected for the search: https://www.screencast.com/t/ucqluGlfrFqg
3. For the moment the tagdiv composer elements can only be changed with css.
Try this custom css in the theme panel-> custom code section and change it to the font you would like to use:
.td_block_text_with_title p{
font-family:tahoma;
}
Thank you!
Hello,
Please use this custom css in your theme panel custom code section:
.td-ps-bg .td-social-mail .td-social-but-icon{
background-color: #64a7cd!important;
}
Thank you!
Hello you,
ok clear, but I think this code need only if I want to edit my page with page builder, right?
So, why if I visit a page and I’m not logged-in, the page must contain this unnecessary HTML + Javascript? Can be an idea, to optimize, remove it if i’m not logged on wordpress admin because no one need to edit my CSS live when visit my site.
Thanks you very much!
Fabrizio
I believe you are referring to this effect
– https://www.screencast.com/t/N5JM1wkkeZy
You could do that if needed, for the modules you want. For example in the Big grid
– https://www.screencast.com/t/n5owD6wIp
This is the code used for that
.td_block_big_grid_1 .td_module_mx5:hover .td-module-title a,
.td_block_big_grid_1 .td_module_mx6:hover .td-module-title a {
text-shadow: rgba(255,255,255,0.35) 0 0 15px;
}
You can modify it as you wish and enter it in Theme panel->Custom CSS. Use the browser inspector to help you with customization
– https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
More about using text-shadow here
– https://css-tricks.com/snippets/css/css-text-shadow/
– https://css-tricks.com/snippets/css/css-text-shadow/
Thanks
Hello,
If you want to change the module title for this block, notice that you should use a bit of CSS code to do this.
.td_block_1 .td-module-title a{
color:red;
}
Thanks for your understanding!
Hello denniz6,
If you want to change the module title color, please use the code below and place it in Theme panel -> Custom CSS area.
The code is ->
.td-module-title a{
color:red;
}
If is not what you mean, please provide more details so I will be able to provide a more accurate response.
Thanks for the message!
Hello,
For the moment they can only be changed with css, but the implementation is in the making for the font settings of these elements.
Thank you!
Hi,
I could give you a code for that, something like this
– https://www.screencast.com/t/cSBx7mTk
Enter the code in Theme panel->Custom CSS section
.td-post-content iframe {
background-color: #fff;
}
Thanks
The Live CSS editor is currently being included in the code of every page using the Newspaper theme (even for non-logged in users), and is merely being hidden from view with a style="display: none"
I noticed it when looking at my site’s results in Google search, and seeing this in the summary for every page:
“Edit with Live CSS. Save. Write CSS OR LESS and hit save. CTRL + SPACE for …”
This issue was also brought up by someone else as a comment on Themeforest: https://themeforest.net/comments/18588378
As was mentioned by that user in the Themeforest thread, this can be fixed by manually commenting out the require_once "css-live/css-live.php"; line in the wp-content/plugins/td-composer/td-composer.php file.
But that does not seem like the best long term solution.
Would it be possible in a future Newspaper update to set this to only be included on a page when a user is logged in, for example with a is_user_logged_in() check or something?
Because, besides the effects in the search engines, I think it is totally unnecessary to load all this extra code on each page when no one is even logged in to make use of the editor:
<div id="tdw-css-writer" style="display: none" class="tdw-drag-dialog tdc-window-sidebar">
<header>
Edit with Live CSS
<div class="tdw-less-info" title="This will be red when errors are detected in your CSS and LESS"></div>
</header>
<div class="tdw-content">
<div class="tdw-tabs-content tdw-tab-editor tdc-tab-content-active">
<script>
(function(jQuery, undefined) {
jQuery(window).ready(function() {
if ( 'undefined' !== typeof tdcAdminIFrameUI ) {
var $liveIframe = tdcAdminIFrameUI.getLiveIframe();
if ( $liveIframe.length ) {
$liveIframe.load(function() {
$liveIframe.contents().find( 'body').append( '<textarea class="tdw-css-writer-editor" style="display: none"></textarea>' );
});
}
}
});
})(jQuery);
</script>
<textarea class="tdw-css-writer-editor td_live_css_uid_1_5a77558c5778f"></textarea>
<div id="td_live_css_uid_1_5a77558c5778f" class="td-code-editor"></div>
<script>
jQuery(window).load(function (){
if ( 'undefined' !== typeof tdLiveCssInject ) {
tdLiveCssInject.init();
var editor_textarea = jQuery('.td_live_css_uid_1_5a77558c5778f');
var languageTools = ace.require("ace/ext/language_tools");
var tdcCompleter = {
getCompletions: function (editor, session, pos, prefix, callback) {
if (prefix.length === 0) {
callback(null, []);
return
}
if ('undefined' !== typeof tdcAdminIFrameUI) {
var data = {
error: undefined,
getShortcode: ''
};
tdcIFrameData.getShortcodeFromData(data);
if (!_.isUndefined(data.error)) {
tdcDebug.log(data.error);
}
if (!_.isUndefined(data.getShortcode)) {
var regex = /el_class=\"([A-Za-z0-9_-]*\s*)+\"/g,
results = data.getShortcode.match(regex);
var elClasses = {};
for (var i = 0; i < results.length; i++) {
var currentClasses = results[i]
.replace('el_class="', '')
.replace('"', '')
.split(' ');
for (var j = 0; j < currentClasses.length; j++) {
if (_.isUndefined(elClasses[currentClasses[j]])) {
elClasses[currentClasses[j]] = '';
}
}
}
var arrElClasses = [];
for (var prop in elClasses) {
arrElClasses.push(prop);
}
callback(null, arrElClasses.map(function (item) {
return {
name: item,
value: item,
meta: 'in_page'
}
}));
}
}
}
};
languageTools.addCompleter(tdcCompleter);
window.editor = ace.edit("td_live_css_uid_1_5a77558c5778f");
// 'change' handler is written as function because it's called by tdc_on_add_css_live_components (of wp_footer hook)
// We did it to reattach the existing compiled css to the new content received from server.
window.editorChangeHandler = function () {
//tdwState.lessWasEdited = true;
window.onbeforeunload = function () {
if (tdwState.lessWasEdited) {
return "You have attempted to leave this page. Are you sure?";
}
return false;
};
var editorValue = editor.getSession().getValue();
editor_textarea.val(editorValue);
if ('undefined' !== typeof tdcAdminIFrameUI) {
tdcAdminIFrameUI.getLiveIframe().contents().find('.tdw-css-writer-editor:first').val(editorValue);
// Mark the content as modified
// This is important for showing info when composer closes
tdcMain.setContentModified();
}
tdLiveCssInject.less();
};
editor.getSession().setValue(editor_textarea.val());
editor.getSession().on('change', editorChangeHandler);
editor.setTheme("ace/theme/textmate");
editor.setShowPrintMargin(false);
editor.getSession().setMode("ace/mode/less");
editor.setOptions({
enableBasicAutocompletion: true,
enableSnippets: true,
enableLiveAutocompletion: false
});
}
});
</script>
</div>
</div>
<footer>
Save
<div class="tdw-more-info-text">Write CSS OR LESS and hit save. CTRL + SPACE for auto-complete.</div>
<div class="tdw-resize"></div>
</footer>
</div>
Thanks epickenyan.
However, I would prefer a solution that does not bloat my site with unnecessary html, js & css.
This means that it would be better for this script not load entirely instead of loading hidden.
Just a quick FYI, your site’s CSS is broken. Check it when you’re logged out of WordPress admin panel.
Newspaper/style.css includes the following code (in 8.6 this is lines 4143-4148):
@media (min-width: 767px) {
.td-header-style-10 .td-affix .td-main-menu-logo {
position: absolute;
left: 0;
}
}
I found that as a result, there is one pixel where the logo does not look correct — it should be position: initial up to 767px inclusive. So min-width could be 768px instead.
Paste this in Newspaper>Theme Panel>Custom Code>Custom CSS
.td-scroll-up {
display: none;
}
Having spacing problems on iPad in landscape and portrait layout. Looks great on desktop and phone so don’t want to change the layout.
Can you give me some CSS to fix this?
https://pasteboard.co/H65N1VB.jpg
THANKS
I figured it out I think. Add this CSS
.td-block-title { background:#523f6d!important; }
I haven’t found any ill adverse effects.
Sorry, I’ll use the code tag:
When I use
1 (in block) then 1.
2 (in block) then 2.
3 (in block) then 3.
etc…
How do I modify the CSS to stop the second number?
When I use an
I end up with:
1 (in block) then 1.
2 (in block) then 2.
3 (in block) then 3.
etc…
How do I modify the CSS to stop the second number?
Hey Catalin,
I am talking about the CSS code added to the theme panel.
Please look at my @media code above in this topic. When I enter this code to the theme panel, it will reappear after an update. Right?
Hi,
why there are a div in my homepage with this code? I’m not logged-in on wordpress, what this need?
<div id="tdw-css-writer" style="display: none" class="tdw-drag-dialog tdc-window-sidebar"> <header> <a title="Editor" href="#">Edit with Live CSS</a><div class="tdw-less-info" title="This will be red when errors are detected in your CSS and LESS"></div> </header><div class="tdw-content"><div class="tdw-tabs-content tdw-tab-editor tdc-tab-content-active"> <script>(function(jQuery, undefined) {
jQuery(window).ready(function() {
if ( 'undefined' !== typeof tdcAdminIFrameUI ) {
var $liveIframe = tdcAdminIFrameUI.getLiveIframe();
if ( $liveIframe.length ) {
$liveIframe.load(function() {
$liveIframe.contents().find( 'body').append( '<textarea class="tdw-css-writer-editor" style="display: none"></textarea>' );
});
}
}
});
})(jQuery);</script> <textarea class="tdw-css-writer-editor td_live_css_uid_1_5a75e0c2a3b33">.home-boxo-mini .td-custom {
border:2px solid #ececec;
}</textarea><div id="td_live_css_uid_1_5a75e0c2a3b33" class="td-code-editor"></div> <script>jQuery(window).load(function (){
if ( 'undefined' !== typeof tdLiveCssInject ) {
tdLiveCssInject.init();
var editor_textarea = jQuery('.td_live_css_uid_1_5a75e0c2a3b33');
var languageTools = ace.require("ace/ext/language_tools");
var tdcCompleter = {
getCompletions: function (editor, session, pos, prefix, callback) {
if (prefix.length === 0) {
callback(null, []);
return
}
if ('undefined' !== typeof tdcAdminIFrameUI) {
var data = {
error: undefined,
getShortcode: ''
};
tdcIFrameData.getShortcodeFromData(data);
if (!_.isUndefined(data.error)) {
tdcDebug.log(data.error);
}
if (!_.isUndefined(data.getShortcode)) {
var regex = /el_class=\"([A-Za-z0-9_-]*\s*)+\"/g,
results = data.getShortcode.match(regex);
var elClasses = {};
for (var i = 0; i < results.length; i++) {
var currentClasses = results[i]
.replace('el_class="', '')
.replace('"', '')
.split(' ');
for (var j = 0; j < currentClasses.length; j++) {
if (_.isUndefined(elClasses[currentClasses[j]])) {
elClasses[currentClasses[j]] = '';
}
}
}
var arrElClasses = [];
for (var prop in elClasses) {
arrElClasses.push(prop);
}
callback(null, arrElClasses.map(function (item) {
return {
name: item,
value: item,
meta: 'in_page'
}
}));
}
}
}
};
languageTools.addCompleter(tdcCompleter);
window.editor = ace.edit("td_live_css_uid_1_5a75e0c2a3b33");
// 'change' handler is written as function because it's called by tdc_on_add_css_live_components (of wp_footer hook)
// We did it to reattach the existing compiled css to the new content received from server.
window.editorChangeHandler = function () {
//tdwState.lessWasEdited = true;
window.onbeforeunload = function () {
if (tdwState.lessWasEdited) {
return "You have attempted to leave this page. Are you sure?";
}
return false;
};
var editorValue = editor.getSession().getValue();
editor_textarea.val(editorValue);
if ('undefined' !== typeof tdcAdminIFrameUI) {
tdcAdminIFrameUI.getLiveIframe().contents().find('.tdw-css-writer-editor:first').val(editorValue);
// Mark the content as modified
// This is important for showing info when composer closes
tdcMain.setContentModified();
}
tdLiveCssInject.less();
};
editor.getSession().setValue(editor_textarea.val());
editor.getSession().on('change', editorChangeHandler);
editor.setTheme("ace/theme/textmate");
editor.setShowPrintMargin(false);
editor.getSession().setMode("ace/mode/less");
editor.setOptions({
enableBasicAutocompletion: true,
enableSnippets: true,
enableLiveAutocompletion: false
});
}
});</script> </div></div><footer> <a href="#">Save</a><div class="tdw-more-info-text">Write CSS OR LESS and hit save. CTRL + SPACE for auto-complete.</div><div class="tdw-resize"></div> </footer></div>
Hi guys – i’ve got an issue where any gleam.io competition widgets we use are being over-ridden style wise. Talking to the supplier of Gleam.io this what they say:
“There’s CSS rule that sets “.td-post-content iframe” to “max-width: 100% !important;” that’s overriding our widget styles.”
This is the effect it’s having: http://take.ms/v22B7
Any thoughts on how to resolve?
Thanks,
Stephan