Search Results for 'amp'

Results from the Forum
devpaq
Participant
#0

I am trying to set that when there is no featured image, it should look for the first image in the article and post that. I tried a few approaches, but none seemed to work.
Am I able to use post_thumbnail_html with this theme?

For example, I tried this in functions.php


function auto_featured_image() {
global $post;

if (!has_post_thumbnail($post->ID)) {
$attached_image = get_children( "post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1" );

if ($attached_image) {
foreach ($attached_image as $attachment_id => $attachment) {
$img = 'ID) . '" />';
apply_filters('post_thumbnail_html', $img, $post->ID, $attachment_id);

}
}
}
}
add_action('the_post', 'auto_featured_image');

Abdulrahman
tagDiv Member

Dear Bogdan ,
Thank you for taking the time to reply to my question ,I really I appreciate it
the color problem happens in Less Than a Second “milliseconds ”
see the video below especially at 0:04 seconds , to know what I mean .
https://www.youtube.com/watch?v=hnWGtB4TIbc&feature=youtu.be

Best Regards

oregoncrimenews
Participant
#0

Hello,

Our site oregoncrimenews.com has been operating with the NewsMag theme for about a month. Worked and looked great until about an hour ago. Now we are plagued with these errors on every page:

Warning: Illegal string offset ‘firstInstall’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_80x60’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_100x70’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_218x150’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_265x198’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_324x160’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_324x235’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_324x400’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_356x220’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_356x364’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_533x261’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_534x462’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_696x0’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_696x385’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_741x486’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_1068x580’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_1068x0’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘tds_thumb_td_0x420’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘td_version’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

Warning: Illegal string offset ‘td_timestamp_install_plugins’ in /home/content/a2pnexwpnas03_data03/34/3338534/html/wp-content/themes/Newspaper/includes/wp_booster/td_options.php on line 48

smileman
tagDiv Member

Hi catalin.
It is not correct, cause u can see my article of text & photo and https://www.screencast.com/t/gnOYYe8X are how different.
https://www.screencast.com/t/gnOYYe8X have wrong pic and wrong text not like my article http://en.visualdive.com/2017/04/24/hyolyn-in-the-swimming-pool-posted-the-perfect-back-on-instagram-photo/
can you check some different way?
and i just found another article had problem like that now.

  • This reply was modified 9 years by smileman.
mayaguez
tagDiv Member

Yes but I thought that you were supposed to be taken to the Post Page selected as Primary and it does not. It takes you to the Posts secondary category page.
For example the post “Sessions says Mexicans will pay for the border wall ‘one way or another’ Primary category was set to be The Week but it lands in the second category page-Immigration-emigration.

kerunet
Participant
#0

Hi, since I installed the last version of the theme the lightbox of every woocommerce product doesn’t work.

This is a product example: http://www.digitalbizmagazine.com/producto/el-customer-journey-del-empleado/

Could you help me please?

Thank you.

Bogdan B.
tagDiv Staff

Hello,

You can add any custom link to the footer menu. You cna create a sign-up page and place it as a footer menu item.
Here is an example: http://www.wpbeginner.com/beginners-guide/how-to-allow-user-registration-on-your-wordpress-site/

Thank you!

Simion C.
tagDiv Staff

Hi,

From what I understand you would like to make the Video News demo similar to the Black Version demo. You could use css along with theme options to style it to look like the black demo. This would require you to identify the elements on the page and set the background you want, like in this example for the homepage
– https://www.screencast.com/t/hFbDJhuNJr9e
You can use the browser inspector to identify these elements and include them in the code
– https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
But also you could just install the black demo which is already using a black accent and overall color, and just recreate the page structure form the other demo.

Thanks

Simion C.
tagDiv Staff

Hi,


@HometownShare
You can choose from a multitude of styles available for the Post Masonry grid, and pick the one that you think it’s best for your website – https://www.screencast.com/t/mXpcauMh0O3
Maybe you can find a style that has the display that you want. Anything else would require custom modification to this element through Css or other means.
If you like to hide the post excerpt for the masonry grid element, you could use this code
– https://www.screencast.com/t/nHMWh0N0
This is the code used in the example, if you decide to use it it must be entered in Theme panel->Custom Css

.vc_masonry_grid .vc_gitem-post-data-source-post_excerpt {
display: none;
}

Thanks

Bogdan B.
tagDiv Staff

Hi,

Unfortunately we will not be able to help with this as the theme does not manage the database or images. They are handled by wordpress. We have not tested migration from one platform to another so we cannot provide any insight in how exactly to go about it. You can use these few example son how to do it:
https://www.tipsandtricks-hq.com/how-to-easily-import-or-export-any-of-your-wordpress-database-content-using-phpmyadmin-3415
http://migratetowp.com/faqs/importing-a-sql-file-with-your-wordpress-data/
https://wordpress.stackexchange.com/questions/49202/importing-a-database-from-a-custom-built-cms-to-wordpress

Thank you!

Simion C.
tagDiv Staff

Hi,

Maybe I am misunderstanding this again, but the example you provided and your website have the same container width
– https://www.screencast.com/t/uhiU3JChdS
– https://www.screencast.com/t/zdaU76TBu
If you would like to modify this width or any other width related element, you could try and change it in the theme stylesheet as Chris suggested above, and see the results.

Thanks

Catalin
tagDiv Staff

Hello nkodgh,

For example, if you are using the post template style 1, you should edit the loop-single-1.php core file and move the div which call the source and place it under the get_comments of your meta info container, like this -> https://www.screencast.com/t/6XBzDTwN and the result should look like this -> https://www.screencast.com/t/yS6GvZEd

Thanks for your understanding!

Simion C.
tagDiv Staff

Hi,

You could modify an existing module using a child theme or make your modifications directly to the main file. The thumbnail sizes are defined in the theme here – https://www.screencast.com/t/jpQvJEG5 you could modify the one you want there, and then be sure to regenerate your thumbnails using this tool for example
– https://wordpress.org/plugins/regenerate-thumbnails/
If you would like to add a new module or block, here is more information if you choose to do it
– https://forum.tagdiv.com/api-modules-introduction/
– https://forum.tagdiv.com/td_api_moduleadd/
– https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/

Thanks

Bogdan B.
tagDiv Staff

Hello,
You will have to provide more details to where exactly do you want to limit the post number. Please provide a example.
Thanks

Simion C.
tagDiv Staff

Hi,

I believe that for optimal results you should use at least a Full HD resolution image. For example the demo uses this image size as background on that particular category template
– https://demo.tagdiv.com/newspaper/category/template-style-6/
– https://www.screencast.com/t/F3sXWyeOP6

Thanks

Bogdan B.
tagDiv Staff

Hello,

You will have to use font awesome for menus and use the html implementation, not the css one. Our theme only works well with the html of font awesome. Here is an example: http://fontawesome.io/icon/snowflake-o/
Add the whole code next to the menu item name:
<i class="fa fa-snowflake-o" aria-hidden="true"></i>
https://www.screencast.com/t/i5b6dIFU8v

Thanks.

Simion C.
tagDiv Staff

Hi,

Probably you will have to make additional implementation here – https://www.screencast.com/t/f6CIA7x8yf but I could not say what exactly has to be done, as we have not make any tests regarding this. The default blocks do not have the option to filter by taxonomy, only by custom post type. You could search the forum for more valuable information if you would like to try and achieve this, like this topic for example
– https://forum.tagdiv.com/topic/filter-blocks-by-custom-taxonomies/

Thanks

Berbi
Participant
#0

Hi there,

It seems that there is a bug with Visual Composer and my theme.

When I set Visual Composer, the H1 meta disappears, I have to add in manually on the text. You can have a look on my index for example : emprunter-malin.com.

Have you seen this issue with the theme previously ?

Thanks in advanced.

SevenUp
Participant
#0

Hi TagDiv

Is there any way to make a post stay at the top of the page even after newer posts are added??

For example for my news site there may be an event in the world that is the most important for 2 or 3 days and the post that I make on it I want it to stay at the top even after I add new posts.

This will be very important for my news site so please let me know how I can do this

Thanks in advance

nkodgh
Participant
#0

With the display of the default share icons at the bottom of posts, I have a Facebook plugin I use for Facebook comments on posts but the share icons for posts at the bottom appears after the comments box, how can I make the botton share icons precede the Facebook comments box?

Example page: http://www.myjcr.com/news/knust-news/speeding-car-knocks-knust-student-campus/

simchris
tagDiv Member

Simply use the Automattic AMP plugin as best solution; it’s built and maintained by the folks who make WordPress, and is being used by some of the top WP-powered sites in the world like TIME.com, etc.

See the docs for the Automattic plugin to manage ad placements, edit the custom templates, etc.

Best solutions as it’s “agnostic” to any specific theme, and things do change over time.

I suspect eventually it will be added to WP core, but AMP is still rolling out this yearfor most folk, even though it’s been in beta since end of 2015.

I don’t work here, but it’s highly unlikely custom AMP elements will be added to this, or most, themes, as the support level would be insurmountable from a cost-effective basis; meaning the team would need to spend more time helping people “fix” their sites for AMP, and the cost per site might be more in support time than cost of theme — since people need to learn to fix bad HTML, https conversion, specific ad support limitations, lack of support for certain javascript elements, poor plugin support, etc.

(I don’t work here. Using TagDiv themes for 3.5 years.)

Waqas
Participant
#0

Hi

I have install APM plugin on my website and traffic increase about 30% but bad news is affiliate sales decrease to about 20% .. i have checked users coming from search engines see different kind of design … it will nice if there is official support for AMP in theme.

Thanks

JA
Participant
#0

Hi

When I paste an URL in a post it is shown in white.
An example of my blog: https://japon-secreto.com/asi-abril-japon-mes-los-cerezos-flor/

Since I set the dark Newspaper demo I prefer to set those windows in black or grey or something like that.
Is it possible?

Thank you

Peperonikuchen
Participant
#0

Hi,

i have madea update , but now the main page give me a error?

Error thrown

Call to undefined function vc_shortcode_custom_css_has_property()

http://www.biker-magazin.com/

How can i fix it?

Thanks & Best regrads

Viewing 25 results - 29,076 through 29,100 (of 38,683 total)