Search Results for 'amp'

Results from the Forum
aragorn
Participant
#0

Hello,

I have just purchased and installed the newspappers theme. Also, the demo content was just installed, but it dont appears to be as it is on the Preview. Here : http://struma24.com I want to be just like on the Demo (http://demo.tagdiv.com/newspaper/) , so I can just start to change the button names.

Also, there are some codes, which appears on the page ( above the Trending now line for example ).

Regards!

Catalin
tagDiv Staff

Hello Vencko,

Unfortunately, our theme does not have such an option to change the place for views and comments and for achieving this is required additional customizations. For example, if you are using post template 1, you have to alter the code from loop_single_1.php, like this -> http://screencast.com/t/2MM6zFxa Please notice that it is not a simple task and only addresses for advanced users. If you want to display more levels in our theme and you are not aware to the steps in this regard, please consider hiring a freelancer/developer to implement this for you because we cannot provide custom services at the moment, sorry!

Thank you for your understanding!

Bogdan B.
tagDiv Staff
Ads? - reply

Hello,
I have checked your website but could not find any header, article ads to inspect. Just the sidebar ones that seem to work. Please provide an example of how you implement the ads and a link pointing to an ad that does not work so we can inspect it.
Thank you!

Marto
Participant
#0

Hello,

I want to make a new category and all the posts in it to be shown in specific format – for example post style 5.
Also to be only for posts in that category, the others to keep using default that is set from theme panel.

Is it possible to achieve that?

Bogdan B.
tagDiv Staff

Hello,
At the moment, our theme uses the same menu for both the mobile and the desktop versions. You can have different menu items with a css trick (without the use of plugins to make the site heavier) to hide specific items for a specific viewport. For example if I want to show a particular menu item on the mobile version but not have it on the desktop/tablet version I would use css like so:
http://screencast.com/t/Imc40ktOxkQ then you can use the advanced css area in the theme panel to hide it on the desktop and tablet version: http://screencast.com/t/6bMol3cjNy
result: http://screencast.com/t/udclPfONn4 – http://screencast.com/t/c1aMafVY
Hope this helps.
Thanks.

Catalin
tagDiv Staff

Hello T2N,

Unfortunately, the theme does not have such an option to change your desired spaces. If you want to have space above and below your video, when you edit your post in text view, you have to add a custom class and then using a bit of CSS to add the padding-top and padding-bottom as you like, like this -> http://screencast.com/t/JNuRhlBc -> http://screencast.com/t/LOYo6xj7Z
For my above example, the code is ->

.custom_video {
padding-top:10px;
padding-bottom:10px;
}

If is not what you mean, please provide more details about your desired changes so I will be able to provide a more accurate response.

Thank you for the message!

Andrei L.
tagDiv Member

Hi

I’ve checked your site and on mobile version I found a js error in browser console. This error seems to be related with theme js: http://screencast.com/t/obNbampt4XM and could affect theme functionality.
Try to deactivate all plugins except Visual Composer, clear all caches and test again.
Let us know how it goes and if the problem persist please send us an email at contact@tagdiv.com with your login credentials and we will inspect this issue as soon as possible, also include a link to this topic.

Thanks!

Bogdan B.
tagDiv Staff

Hello,
You will have to place the adsense in the theme panel in one of the ad spots (for example custom ad 1) adn then use the do_shortcode function in the php file:
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]')?>
Hope this helps.
Thanks.

Bogdan B.
tagDiv Staff

Hi,
The best visual examples are provided by the visual composer author. We also have a few tutorials here:
https://www.youtube.com/user/tagdiv
Thanks.

Bogdan B.
tagDiv Staff

Hello,
Please try to update your theme to the latest version by using this guide: https://forum.tagdiv.com/how-to-update-the-theme-2/
If you still have this issue, please try to disable all plugins except visual composer, clear cache and reset cdn files.
Sometimes, wordpress itself has issues with special characters. If you use for example special characters in your sidebar titles, your sidebar will be stripped of widgets by WP. Please try to avoid special characters as much as possible.
Let us know if you still have this problem.
Thanks.

Andrei L.
tagDiv Member

Hi

The import function won’t work properly from Newspaper to Newsmag because the selectors are different from one theme to another. For example if in Newspaper theme you have a background color set for main menu by importing the style in Newsmag this option won’t work. Some of the options will e recognized bot some will not be because of the difference between the css selectors.

The pages built with Visual Composer will be recognized by Newsmag theme as the shortcodes are the same. It won’t be recognized for example a block 18 because in Newsmag theme this block does not exist, but the commune elements will be recognized fine.
Also you will have to regenerate all thumbnails as Newsmag uses different sizes then Newspaper: https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/

Before making any changes make sure you do a full backup to your current wp-install and the database also: https://codex.wordpress.org/WordPress_Backups This is a security measure, in case something goes wrong you can always get back to the previous version.

I hope this help.
Thanks!

simchris
tagDiv Member

Heh. They gave me a little “red/gold crown” for helping out 😉

I usually pop in here for a little bit while waking up, or while waiting for something to FTP to server, and got sick of watching the “progress window” .. so little bit of a time waster / karma points / or whatever. (Right now I’m uploading bunch of mods to the CMS I’m working on for our corporate site trying to integrate a YOURLS shortcode system into ‘printing’ the code into the social share buttons “on template” …

I disappear for long periods, but since I have multiple sites, and have been doing webdev for 21 years and WordPress for 11-12 years now, I’m usually at the “front” of the line in delving into new stuff like mod_pagespeed, http/2, AMP, or whatever. I guess I was also one of the folks who helped make the “shim” happen for disabling visual composer that Radu did, since one horrible series of VC versions crashed our server. Been around here with them longer than most, I guess.

Anyway – sometimes I have a “highly experienced” comment based on having to deal with a problem for “years” that many here haven’t had to suffer. Of course, some people get mad when I disagree with their comments (whining?) — but not too many of those, thankfully.

So, anyway — gingerbread cookies accepted in my virtual tip jar!

Back to the salt mine!

  • This reply was modified 10 years by simchris.
  • This reply was modified 10 years by simchris.
  • This reply was modified 10 years by simchris.
Alok_Mishra25
Participant
#0

How to add linkedin or some other buttons to the sharing options? I can see only twitter & facebook button in my posts. Moreover, how to add share counts in the options? Is there any way to enable share counts on the posts? Please tell if there are some options like that.

simchris
tagDiv Member

Hi, note i don’t work here and not part of TagDiv — I started using Newspaper back in late 2013 ? As their thinking was exactly what I was building from scratch, at the time it was very bootstrap oriented, and they were further along. I kind of ‘adopted’ them, hence my lurking in here with advice 🙂

I guess with the featured video code, try putting it into the AMP plugin, exactly the same way it gets dropped into the featured video template?

See what happens ?

PatWire
tagDiv Member

Thanks for your time Chris S

I read it all! Easy!?
Well in the end I went for Yoast Glue – WP Auttomatic AMP AND PageFrog – saw the combo recommended (then saw you warn about PF today) but it is all working well – logo/images/previews so will see if they come through ok

Pat

cagriciftci
Participant
#0

How do support amp ?

gossiponthis
tagDiv Member

Chris,

Okay, so I’ve customized our AMP theme using the default plugin. Now I’m back to trying to make sure our video posts show up properly.

After going through the theme files, I came across this:

//handle video post format
if (get_post_format($this->post->ID) == 'video') {
//if it's a video post...
$td_post_video = get_post_meta($this->post->ID, 'td_post_video', true);
$td_video_support = new td_video_support();

//render the video if the post has a video in the featured video section of the post
if (!empty($td_post_video['td_video'])) {
return $td_video_support->renderVideo($td_post_video['td_video']);
}

This looks like what I need. It’s basically saying, “If this is a video post, render the video if the post has a video in the featured video section of the post.”

Now, what do I do with it?

Any help is much appreciated, thanks!

simchris
tagDiv Member

For tech heads … by massively hacked … we are

– changing wp-content to /assets/
– changing author slug to profile
– removing /category/ slug
– hacked theme name and dependencies to our local branding
– local loading vs CDN of font awesome and jquery for optimzation/opcache in prep for https/2 update to server
– highly compressed html, js, css
– highly optimized wp-config.php file
– if single/ head removal of js/css only intended for home page
– locked down php disabling in core WP folders for security
– complete removal of all comment code
– complete removal of all XML-RPC code
– complete rewrite of local default search to load from paid Google Search Engine (GSE), including from URL search string and default WP search box
– local loading of author/client avatar, captured from gravatar but hosted locally and cached
– custom “more posts from author” function and placement
– custom breadcrumbs since our CMS is in sub-dir, main static site one level up for actual ‘home’
– custom author box to print as plug into after post meta to appear on AMP version of page including link to author/client site and top four socials (rel=nofollow and target blank)
– custom data fields with ACF5 Pro
– custom hook to our YOURLS install to pull in custom shortcode, drop into post meta, for sharing
– custom local functions, CSS, for social sharing buttons that grab YOURLS shortcode
– (and like etcetera)

so, you think you’re confused ? Welcome to my brain right now ! 🙂

simchris
tagDiv Member

Best bet is to only use the AMP plugin from Automattic as it’s the one being developed for all the WP VIP customers (e.g., TIME) and working with Google more closely than random plugin developers can do. It also adds built in support for those using JetPack, and has a simple template system and ability to change fonts, etc.

Highly recommended, and check the AMP plugin support threads for “edge” solutions as they happen.

Any other plugin you’re using, you’ll need to address the plugin developer for help.

( My company not currently available for work, as we are rebuilding our corporate CMS with a massively hacked version of WordPress right now …. as well as optimizing AMP for our news network sites …. overloaded to put it politely and working on the weekend *again* [sigh] )

Everybody learning to use AMP right now (we started with BETA last November hence why I’m a little ahead of most folks on it!). Seriouusly consider sticking with what might be called the “official” WP AMP plugin. The other stuff, including PageFrog, buggy as hell (see support threads for problems).

“It’s not a job, it’s an adventure.”

gossiponthis
tagDiv Member

Hi Chris,

I’m familiar with how to modify theme files, however I have no idea where to start with this one, ha.

The way the particular plugin I’m using for AMP handles theme files is a little different, so you would probably have to take a look at that. Do you guys do custom work? If so, would it be possible to get a quote from you, privately? What is the best e-mail to reach you at? Or is there a way to send private messages through this forum?

Let me know as soon as you can, thanks!

– Dustin

simchris
tagDiv Member

Or, to clarify – some things which hook into the post content, such as some author box plugins, or related post plugins, which hook onto end of the content block *will* show up in AMP automatically.

Be careful of paragraph alignment tags which WP stupidly still uses for old browsers and should have been changed to alignment classes at least 2 years ago. SO, centered paragraph tags and such will have to be search/replaced. Luckily images use an alignment tag properly when placed via the post insert media setting.

Very old non https YouTube/Vimeo links will need updating from http to https…

etc.

simchris
tagDiv Member

Read the docs on the AMP plugin as good first step.

AMP only loads content in the actual content box. Anything else “outside” the post, you have to add by editing the AMP plugin template. This solution makes it easier for people with different needs, templates, custom post types, etc., to enable what they want — which varies from site to site.

AMP is not required, but will get some bump in mobile search with the little AMP lightning bolt next to SERPS listings and also appear in the news carousel, where non-AMP versions will not.

YOAST SEO and Glue addon are useful for dropping in additional things to align the AMP version with the main version of post, default image, etc.

It’s all still a work in progress obviously. First step is actually having AMP pages so Google can see you’re moving to AMP, then they will “see” that and add AMP spidering to your Search Console for review.

PatWire
tagDiv Member

Hi Chris

I got the AMP working but picture galleries don’t show – is that a next step on AMP functionality or can it work now?

Pat

simchris
tagDiv Member

Theme does fully support AMP, but any customizations you need have to be made to the actual AMP template provided with the AMP plugin.

So, best bet is to try inserting the video into the template itself either from custom field, or pull the field from the video post type?

Then check validation tool from Google … be careful of some funky stuff with iframes, everything MUST be https if loaded from external location, and there cannot be any inline styles like align tags on paragraphs vs using a class.

Not sure that answered your question, but luckily it’s easy to mod the AMP template. 🙂

==========================

See my tutorial thread on AMP.
https://forum.tagdiv.com/topic/tutorial-getting-started-with-accelerated-mobile-pages-amp/

Theme supports AMP via the plugin made by the same people who make WordPress.

Using YOAST SEO, AMP plugin, and Yoast AMP Glue, our sites are working very very well with AMP.

Viewing 25 results - 33,401 through 33,425 (of 38,683 total)