Search Results for 'amp'

Results from the Forum
Jankow
Participant
#0

Hello,

I would like to add a photo to the left side of the number ten block. Is this possible? I think it would be really cool to have a photo or illustration next to the headlines inside the block.

Here is my website. http://www.PlanetFreeWill.com. Block ten is the very first block under the slider.

This website right here is a good example of the look Im going for, http://www.PrisonPlanet.com.

One other thing, how can I get the smartside bar on my homepage?

I hope someone can help!

Thanks.

simchris
tagDiv Member

ALSO:
happy to say the ‘bug’ I reported to the AMP plugin developers is fixed, where when the /wp-content/ folder is renamed (using proper hook in wp-config.php), to something like /assets/ — the amp extension now renders properly. Before it could not find itself when the directory name changed.

simchris
tagDiv Member

Latest version of AMP as of 3/5/16 addresses the issues with Windows servers generating blank pages.

Main issue I’ve run into so far with validation errors is the stupid long-standing way WordPress has done alignment on paragraphs with an align tag, which should not be used in modern HTML. I am guilty of being lazy about this also, and knew it was going to bite me at some point.

So, all the
<p align="center">Centered Text</p>
stuff needs to be replaced with a centered text CSS class.

Search/replace in the mysql dbase seems to be the way to go on that.

Similarly people who were doing tables by hand with stuff like

<td bgcolor="#efefef">My cell</td>

will also need to replace stuff like that with something like
<td class="tdcolorefef">
where you create the custom CSS for that class.

Technically modern HTML should not have *any* inline styles, but should only have CSS classes. Annoying but true. And the Google protocol presumes 21st century HTML and not HTML 3.1 era stuff.

Sadly, I’m old enough to remember hand writing HTML where we didn’t even need closing tags!

I am actually going to try out this plugin as a simple ‘lazy’ method vs going back to phpmyadmin to do the command line search/replace:
https://wordpress.org/plugins/better-search-replace/

This may prove useful:
http://www.wpbeginner.com/plugins/search-and-replace-plugin-for-wordpress-database/

So, anyway – hope that helps.

( REMINDER: always make a full backup of your mysql dbase from your hosting panel > dbases > duplicate dbase before you do *anything* to modify your dbase from any plugin or from phpmyadmin !! )

chauffeur
Participant
#0

Hi,

Our banners are working OK, except the one located in the posts under the post main text, and only when accessed with Safari (Mac, iPhone, iPad…) In this case, they are replaced by a big white box.

example

What should we do to get a proper display?

Thanks

Mayapur Voice
tagDiv Member

Ok great info. Thanks. One thing is, some images just don’t show up correctly and leave empty space around even after regenerating thumbnails. Examples https://gyazo.com/ce895cacc6912639cb4a0bbc2dc6b004 and https://gyazo.com/72e507e86c657cdf74e5ddbb6a383e38.

An image on a new post (with newly uploaded image) also left empty space at the bottom. https://gyazo.com/d4b4aa577c0d7cad7bb2ffa839bd1259

I thought the theme would resize / expand newly uploaded images according to the chosen grid size and then crop it as described in the documentation. Have I misunderstood it? Any clue as to what could be going wrong? Thanks.

The Transnational Post
tagDiv Member

Thanks, the code really worked, I have a question.
I am trying to add a feature or plugin in my website that will use search history and IP address of site visitors to sort news and post news to the IP address based on their interest.
Example: If I am always searching for news on Russia or Zambia, the feed and post will send more news on Russia or Zambia. Yahoo news have that feature. Do you guys have a plugin for that or any suggestion?

Andrii
Participant
#0

How to make the home page, in the part of the blog I can insert an element dividing (for example) on the blog entries 5 and 5 (or 8 by 8) so that the insertion member to the block:
1) shared a blog to sidebar http://joxi.ru/ZrJNb3nh1v5xRr
2) shared including sidebar http://joxi.ru/eAOlbkyF4dKgpr

The same question by сategory
1) http://joxi.ru/82QDby8F1KalQm
2) http://joxi.ru/52a8xoKsGNQ6bm

rishab55555
Participant
#0

Hello,

I have newspaper v6.5 installed on my website.

URL – https://www.naukrinama.com

I want to place multiple inline content Ads on my article detail page i.e.
a. 1 Ad after Paragraph 1
b. 1 Ad after Paragraph 2
c. 1 Ad after Paragraph 3

and so on.

The theme only provides option to add 1 inline content Ad. Please let me know how can this be achieved.

Secondly i have few posts with pagination i.e. the post have multiple page breaks.
For Example : https://www.naukrinama.com/10-toughest-entrance-exams-to-crack-in-india/

Now I want to automatically insert a Ad short Code after Page break 2 and Page break 4. Please let me know how can we count the no. of page breaks in a post and then subsequently write a code to get the Ads inserted.

simchris
tagDiv Member

If you have a news portal, it’s worth it to start using AMP now, as some places on mobile in the Googleverse, ONLY the AMP-ready content might be shown.

Even if 20% of your content fails validation, that’s still 80% that does.

Andrei L.
tagDiv Member

Hi

We’re sorry for for all this inconveniences.
There are many alternatives to control the video’s layout according with it’s aspect ratio but all this involve custom code.
The videos layout it’s entirely controlled by javascript and works like this:
– first read the width of the container where video it’s displayed then set apply a 100% width to the video. For example if the container have 980px width the video will also have the same width.
– second step it’s setting up the height. This value It is obtained by multiplying the width’s value with 0.5625 for videos from vimeo.
This value can be changed anytime but this will affect all videos, no matter what aspect ratio they have. For example by changing the value like this: http://screencast.com/t/eesYaBhn9d I get this results:
– for a video with aspect ratio 4:3: http://screencast.com/t/uq7e9Nu9G
– for a video with aspect ration 16:9: http://screencast.com/t/CiuMxuf8fD You can notice in this screen that by changing the value these black bars will appear on videos with 16:9 aspect ratio. The default value, 0.5628, display correct 16:9 videos: http://screencast.com/t/OzkY7zgx but affect others.

With this informations I intended to point out that by changing the current implementation such that to display the correct videos with 4:3 aspect ratio, will be affected other videos layout, respectively the ones with 16:9 aspect ratio.

A possible solution would be to use only videos with 4:3 aspect ratio and modify the indicated value to 0.7625: http://screencast.com/t/eesYaBhn9d Other solution would be a custom code which calculate the rapport between width and height, and depending by that result apply a specific style such that the black bars to not appear on videos.
This is the complex task which I refereed as are required many investigations and tests in order to obtain best results for videos.

We certainly plan to improve this system in the future updates. I’ve added this on our todo list and when the time comes our developers will consider it. This may take some time because we have a long implementation list and we take them one by one.

I hope you will find this information useful and I apologize again if I didn’t make myself quite clear from the beginning.

Thanks!

Mela Rossa
tagDiv Member

Hi,

sorry but this is not a solution 🙂

If remove the code in .js the modal windows is removed, but the link assign to the image (example: to this image i have assign http://www.google.com) don’t appear in the code!!! and open in the same tab the image!!!

this is the html code in my console that i see…

<figure class="td-slide-smart-list-figure td-slide-smart-list-2">



<figcaption class="td-sml2-caption"><div></div></figcaption>
</figure>

I have assign correctly the link to google to this image in backoffice!
the correct code code for the “a” tag should be:

Arafat
Blocked
#0

How to create custom ads position here: http://prnt.sc/ab2xox manually. I use custom ad 1 here how to add this code. Example this: http://prntscr.com/ab2zmd

Note: please don’t give this link https://forum.tagdiv.com/header-ad/

Bogdan B.
tagDiv Staff

Hi,
Maybe you did it wrong. Try it like so: http://screencast.com/t/fdqPjCsJk
result: http://screencast.com/t/YXaff1saCqmT (I added it below the crumbs.you can add it above if you want)
If you add it above the breadcrumbs, there will be no margin on top so in this cae you will need to make use of a bit of htm and css and add the code inside a div like for example
<div class="mycustomad"><?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_4"]')?></div>
and then use css to apply a margin-top for positioning:

.mycustomad{
margin-top:10px;
}

I hope this helps.
Thanks.

unplug.tips
tagDiv Member

Ha ha,

Thanks for the heads up on AMP, I did read your post the other day and thought “i’ll give that 3 months to settle down” 🙂

Best

D

Bogdan B.
tagDiv Staff

Hi,
You can add your custom ad in an ad box in visual composer and then get the sortcode for it. For example
[td_block_ad_box spot_id="custom_ad_1"]
Then you can use the do_shortcode function like so:
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]')?>
Then you can insert this code directly in one of the post template files: http://screencast.com/t/XcVZQFqLiS
Add the code where you want it to appear: http://screencast.com/t/JiV0WVpXx
Thanks.

Bogdan B.
tagDiv Staff

Hello,

1) You simply need to ad the ad title in order to get them aligned: Please use the adbox for your ads:
http://screencast.com/t/pp2ggA0uB5y (It requires the use of the ads section in the theme panel.)
2) You can add a custom css class to a row in visual composer and then use css to style it
for example: http://screencast.com/t/52xQ9CzHPL and then use css to add borders:
.mycustomrow{
border:2px solid black;
}

It will require further customization though
3) That is because you have a different implementation of the title. You use a text with title and since it’s a different element. Again you will have to use a custom class on your row because this css will affect every other text with title:
.td_block_text_with_title {
padding-bottom: 5px!important;
}

after you add the custom class you would use the code like so:
.mycustomclass .td_block_text_with_title {
padding-bottom: 5px!important;
}

4)You can use this css:
.type-post .entry-title a, .type-post textarea{
color:black!important;
}

I hope this helps.
Thanks.

Catalin
tagDiv Staff

Hello srampia,

Please check this -> http://screencast.com/t/yg9GiUHypku and here you can see which are the dimensions of the each thumb which are used in our blocks. For more information about block settings, please consult our documentation here -> https://forum.tagdiv.com/block-settings-tutorial/

Thank you for the message!

Amit
Participant
#0

Thanks Catalin,
Solutions provided works fine, Im glad I bought Newspaper,
How Can I remove the extra space between “The Custom Ad & Breadcrumbs” AND between “The Custom AD and Post heading”
Screenshot is here

Catalin
tagDiv Staff

Hello boundary2,

I have checked your website and saw your logo. If you want to have a larger logo on your website you have to use the logo with the larger size than yours. Please notice that our theme does not enlarge the logo size but only display the size of it. Please check my example with another logo here -> http://screencast.com/t/9IZB7PxVQjSN -> http://screencast.com/t/3yFOgTuPk92E Your logo dimensions -> http://screencast.com/t/X3OfAbPNNMP
For more information about theme’s logo, please consult our documentation here -> https://forum.tagdiv.com/logo-favicon/

Hope this helps!

Thank you for the message!

Andrei L.
tagDiv Member

Hi

To apply a different style on mobile devices you can use media queries like this:

@media (max-width: 768px){
.css-class-of-the-element{
color:red
}
}

This is just a basic example but works like this: for screens smaller then 768px apply a red color for the element with this css class: .css-class-of-the-element. You have to replace this expression with the real selector of the element of which’s style you want to change.
Note that this is a complex task which require good css coding skills and many tests in order to be accomplished. If you still need guidance on this or you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you as we can’t offer customization services at the moment.

Thanks!

Amit
tagDiv Member

Thanks Catalin,
Solutions provided works fine, Im glad I bought Newspaper,
How Can I remove the extra space between “The Custom Ad &amp; Breadcrumbs” AND between “The Custom AD and Post heading”
Screenshot is here

srikanth
Participant
#0

hi

we want different navigation for each device can u help us with the css for the navigation buttons on the attachment.php

example page http://www.tollywoodfans.in/44974/regina-cassandra-photos-at-shourya-promotional-event/regina-cassandra-photos-2-14/

This is defined for desktop for now ..

Andrii
tagDiv Member

OK, thanks. I understand this question.
I have a request: do you have the opportunity to consider and submit to the plan for the future updates of the theme is another style (very modern and necessary) for the main page and posts?

Here are some examples:

home page: http://joxi.ru/KAxV3yQF4pEzYm
post page: http://joxi.ru/LmG8bZRsRvNpX2

or see here: http://tsn.ua/ and http://tsn.ua/nauka_it/rozrobniki-z-google-stvorili-motoroshnogo-dvonogogo-droyida-ta-poznuschalisya-nad-nim-597812.html

simchris
tagDiv Member

As a heads up to anybody moving to get AMP setup ..
the one major bugaboo seems to be Google not liking the obviously bad method WP has used for centered text all these years (which should have been a CSS class).

FYI, all the
<p align="center">Centered Text</p>

is going to show as an error in AMP validation (!).

Seems like a good time to remember how to do a search/replace via MySQL for the WP post meta.

( DOH ! )

If you prefer a plugin to do this — keeping in mind you BETTER make a backup of your MYSQL DBASE *first*, then this seems popular and recommended:
https://wordpress.org/plugins/better-search-replace/

Obviously making a class for centered text like

.centerboy {text-align: center;}

goal would be search replace to end up with

<p class="centerboy">Centered Text</p>

  • This reply was modified 10 years by simchris.
  • This reply was modified 10 years by simchris.
  • This reply was modified 10 years by simchris.
Andrii
tagDiv Member

I want in the categories:
news in grid different from the next news.
On other sites it is implemented by default.
examples:
http://root-nation.com/category/mob-accessories/
http://www.iosxtreme.com/category/aplicaciones/
http://www.akcent.org.ua/category/svit/
http://joxi.ru/eAOqwNbt4QxElm

On my website – news on the grid are the same as the next.
Example – http://www.test.fainaidea.com/archives/category/technologii2

Viewing 25 results - 33,501 through 33,525 (of 38,683 total)