Search Results for 'amp'

Results from the Forum
Simion C.
tagDiv Staff

Hi,

Blocks might not look properly when inserted in the footer and then stretched. This option is useful but for certain elements, blocks are not part of those elements. There are full big grids that you could use for full width, like this one for example
https://demo.tagdiv.com/newspaper/full-big-grid-4/
These would be some footer examples of use of the stretch to full with content option (with multi-purpose elements)
https://demo.tagdiv.com/newspaper_technology/
https://demo.tagdiv.com/newspaper_dentist/
https://demo.tagdiv.com/newspaper_construction/
Try and use full big grids for full width, or try with different elements than blocks.

Thanks

Simion C.
tagDiv Staff

Hi,

Remove all content from the link, the socials will not display anymore. Example
https://www.screencast.com/t/9d8Ek44oGM
https://www.screencast.com/t/ykh5zsvhg
The field must be completely empty, no link or link placeholder (#).

Thanks

Simion C.
tagDiv Staff

Hi,

So you want to create a sub-menu and the users should not be able to click on the main menu item. You could do that by using a custom link element. This is an example
https://www.screencast.com/t/pZT60Kok
https://www.screencast.com/t/qqMxQ4aRxF
The resulting menu item cannot be clicked, the sub-menu items will be displayed on hover.

Thanks

stephanwhelan
tagDiv Member

Hi Bogdan – thanks for this. Here is an example post: https://www.deeperblue.com/win-deepblu-goodies-celebrate-world-wildlife-conservation-day/

Cheers!

Catalin
tagDiv Staff

Hello bobbymc,

Please check our list of blocks because there you will find a lot of elements which can satisfy your desire. As an example, you should try using the Block Style 4 which is displayed like this -> https://demo.tagdiv.com/newspaper/block-4/ Here -> https://demo.tagdiv.com/newspaper/block-4/ you can see all of our blocks.

Hope this helps!

Thanks for the message!

Simion C.
tagDiv Staff

Hi,

Place the shortcode in a text element (like column text) and check the results. This is an example for a contact form with a shortcode
https://www.screencast.com/t/SA0G6t7iXwY
Be sure to save the page and view it after placing the shortcode
https://www.screencast.com/t/V8BQp2vC9F
https://www.screencast.com/t/G2uLHapX

Thanks

Simion C.
tagDiv Staff

Hi,

The menus indeed can be set in Appearance->Menus, there you can edit the menus and their locations. Save the settings once made, there should be no problem doing that.

Or set the menu through the theme panel, each location has a setting, like this example for the header
https://www.screencast.com/t/i3GjpOaU

If you already tried this and the menu is not setting, try deactivating all plugins, leave only theme plugins active. Check the theme system status
https://forum.tagdiv.com/system-status-parameters-guide/
Ask your hosting provider to increase the WordPress allocated resources if needed, according to the guide. Then check if you can set a menu properly.

Thanks

Simion C.
tagDiv Staff

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

Simion C.
tagDiv Staff

Hi,

You will have to modify the module that block 4 uses, for example. Copy the read more code from a module that has it, in the module 2 that block 4 uses. In this example I have copied the code form module 11
https://www.screencast.com/t/ZUPBLaHmj
In module 2 – https://www.screencast.com/t/BxASAZrF0Ti
The result is here – https://www.screencast.com/t/vfeLfPkAZL
So that can only be achieved through modifications to the module file. Either module 2 for block 4, or module 5 for block 6.

Thanks

south310
Participant
#0

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>

shaial
tagDiv Member

Thanks epickenyan.
However, I would prefer a solution that does not bloat my site with unnecessary html, js &amp; css.
This means that it would be better for this script not load entirely instead of loading hidden.

ctoweett
tagDiv Member

I set some on my site using several hacks (but only for the current item, for example, when you click on a category in the header menu). But if you mean different colours for the categories when in the homepage, then for that I tried testing my site with inspect element in chrome, and the suggestion I have would only work if you provide your site link for further inspection, or wait for the tagdiv team to assist you on Monday.

osabob
Participant
#0

Hello guys!

I want to achieve the following effect: present the featured image in full width, just like I can see it as an example of your website: https://wpde.sk/po/opjwmf9sm3x3.png

However, when I set my post template to #6, (like I see it in the docs), I get the following effect: https://wpde.sk/po/opj4ioqnjicn.png

The featured image is not full-width. Here are my settings: https://wpde.sk/po/op67ncmxlze7.png

How to achieve full-width featured image, just as in your example?

I’m using Newspaper theme version 8.6 and I’ve imported Newspaper (default) dummy data.

shaial
Participant
#0

How can I customize ad behaviour?
Specifically I would like to show / hide ads based on:
1. Which post the user is visiting. In some cases (like cornerstone content), I don’t want ads in the posts.
2. I would like to like to determine the best monetization strategy for each user. For example, a user who reached from adwords, or filled out a form in the site is “high conversion intent” (I don’t want to show them ads), whereas a user from a country I don’t cater to, is “low conversion intent” and I would like to show them more ads than usual. Can I control the adsense ads frequency in javascript or wordpress?

Thanks.

nhatkymua
Participant
#0

Hi, can you help me with replace text on the post via functions.php

Example i have code like this
<img class="logo" src="https://domain.com/photo.jpg" style="with:100px" >

I tried to edit this code like this
<img src="https://img.domain.com/photo.jpg?w=696&quality=80&strip=all">

So i add this code to functions.php, but something was wrong! can you help please

function replace_text($text) {
$text = str_replace(‘<img(.*?)src=”(http://|https://)(.*?)(jpg|png|gif)(.*?)>’, ‘<img src=”https://img\1?w=696&quality=80&strip=all’, $text);
return $text;
}
add_filter(‘the_content’, ‘replace_text’);

ogrencipano
Participant
#0

How is the use of shortcode in Tagdiv Compser? I could not understand

for example (Visual Composer ) :
Use in WordPress text
[gallery id="123" size="medium"]

okay. I need your help

irfan.id
tagDiv Member

Hi, I think it’s coming soon on next update, more info here https://tagdiv.com/amp-newspaper-theme/

juanca1612
Participant
#0

Good morning, can Google’s AMP system be optimally implemented in our Newspaper theme?

bobbymc
tagDiv Member

Right got that. But how can change the text color – to white for example?

notageek4u
Participant
#0

I sent in an email with login credentials already, but my TagDivi isn’t fully functional.
Some parts work, but others don’t for when creating a landing page and using those elements.
Example: I can put in the Hero Image element, but it doesn’t give me a spot to change any text at all.
It’s the same for almost all elements.
I’ve included a screen shot so you can see.
It started acting wonky today when I updated to newest version of 8.5

Dimitron
tagDiv Member

Hi,

Thank for your reply.

I managed to resolve the logo issue, I think it was something with making the logo sticky. Right now it’s not sticky, and it’s displaying correctly.

Regarding the fonts, as I said, I tinkered a lot with the backend font settings. I wouldn’t write if I hadn’t checked.

For example, on the current frontpage, for the the life of me, I can’t find which one is changes the image titles (not the homepage post). It’s set as 46 px and 37px line height, I cannot nothing that matches that. This is just one example.

Other Examples:
– Homepage > Image block titles
– Blog post >Title
– On Category page > title and body
– in post editor (in backend) the font is different vs. in preview

Maybe it in the modules MX etc. part where I can find my answers, but they’re not marked what does what.

So I’m still stuck.

Yago88
Participant
#0

Hi!

First sorry for my english.

I have been using this theme for a while and no problems, but now (Don’t know if since a host change or a update of theme) the “hide on devices” feature in “Settings-> responsive options” doesn’t work, and many blocks that I had hide in mobile devices and tablets now shows up in all devices.

For example, the sidebar, I only show it on deskopt, but now it appears in all devices even if I have checked the “hide box”.

I need to fix, I tried the mobile plugin but its limited, so I need this. Thanks in advance!

simchris
tagDiv Member

Google will skip images which may be copied from other sources, already in their index; they may skip images which look like ad banners (‘too much text’), or which have too little photo data (e.g., a gif converted to jpeg might only be 16 colors; vs thousands of colors in a proper photographic image). Images which may contain meta data and not optimized for web may also be skipped.

FYI, Google AMP now ‘requires’ images be at least 696 pixels wide, which means all sites should generally consider moving up from 600x and 640x to 696 (696 is presuming 700 pixel container with one pixel border, for those non technical folks wondering about that). Google News doesn’t yet have this requirement, but it’s something to consider. if the image is too small, they may skip it and use something else.

Similarly – using generic file names is a huge nono. “Image12345.jpg” is bad. “180202-jeg-696×522.jpg” is good. Also, your image file names should always have the dimensions in there, for best results.

Hope that helps.

Thomas
Participant
#0

Hello
Till the last version of WV the line with the breadcrumb disapear:
https://www.virtualmagie.com/boutique/
I also have to regenerate all the thumbnail of the products! 🙁
Any idea how to make the breadcrumb line come back?
Regards

ctoweett
tagDiv Member

Yes, you can. Create a menu and add the pages you want to appear in the footer in it in Appearance>Menus. Then assign it to the footer and save. It will appear on the right side of the sub footer like this for example http://prntscr.com/i987qn

Viewing 25 results - 26,151 through 26,175 (of 38,683 total)