Search Results for 'amp'

Results from the Forum
bestword1
Participant
#0

Hi there,

I’ve been having trouble getting the Amazon Affiliate programme’s Responsive Search Widget to display on my site: https://affiliate-program.amazon.co.uk/gp/associates/promo/search-widget.html

An example page where the widget is embedded can be found here: http://bestforcats.co.uk/guest-posts/guest-post-surefeed-products-make-mealtimes-easier-cats/

Has anyone managed to get this working on their website? I don’t think this is a problem with the theme as such, but I’d be grateful to hear from other Newspaper users as to how they got it to display.

As it stands I’m (unsuccessfully) using the Ad Inserter plugin which is added as a widget on the sidebar, but the raw JavaScript block in Visual Composer failed to display the Amazon widget either.

Thanks in advance!

nycinsider
Participant
#0

Transitioning to NP theme…and I know this doesn’t fall under typical support but I am really hoping someone out there can help me. I have a custom RSS feed in my current site I’m trying to copy over (working on a staging server – not sure if that makes a difference).

I have added a functions.php to my child theme and added this code:

// First remove all the RSS feed links from wp_head using remove_action

remove_action( ‘wp_head’,’feed_links’, 2 );

remove_action( ‘wp_head’,’feed_links_extra’, 3 );

// Then reinsert the main RSS feed by using add_action to call our function

add_action( ‘wp_head’, ‘reinsert_rss_feed’, 1 );

// This function will reinsert the main RSS feed *after* the others have been removed

function reinsert_rss_feed() {

echo ‘<link rel=”alternate” type=”application/rss+xml” title=”‘ . get_bloginfo(‘sitename’) . ‘ » RSS Feed” href=”‘ . get_bloginfo(‘rss2_url’) . ‘” />’;

}

//NEW RSS FEED function copied from previous developer

remove_all_actions( ‘do_feed_rss2’ );

add_action( ‘do_feed_rss2’, ‘acme_product_feed_rss2’, 10, 1 );

function acme_product_feed_rss2( $for_comments ) {

$rss_template = get_stylesheet_directory() . ‘/feed-rss2.php’;

if( file_exists( $rss_template ) )

load_template( $rss_template );

else

do_feed_rss2( $for_comments ); // Call default function

}

add_filter( ‘the_content_feed’, ‘my_rssfooter’ );

add_filter( ‘the_excerpt_rss’, ‘my_rssfooter’ );

//NEW RSS FEED function copied from previous developer

function my_feed_thumbnail($content) {

if (is_feed() && has_post_thumbnail()) {

return get_the_post_thumbnail( get_the_ID(), ‘thumbnail’ ) . $content;

}

return $content;

}

add_filter(‘the_content_feed’, ‘my_feed_thumbnail’);

add_filter(‘the_excerpt_rss’, ‘my_feed_thumbnail’);

//NEW RSS FEED function copied from previous developer

add_filter(‘excerpt_length’, ‘my_excerpt_length’);

function my_excerpt_length($length) {

if ( is_feed() ) {

return 1500;

} else return 0;

}

————————————————————
then, also added a standard feed-rss2.php template to my child theme

But I still can’t get it to work. The feed on the new site is the standard RSS feed, but that’s not what I want. I need my custom RSS feed.

THANK YOU in advance to anyone who may be able to help.

Jukka Mykkanen
tagDiv Member

Hi,

I would like all images to use lightbox and installed the WP lightbox 2, but problem is that it does not work. In fact, I can’t get any other lightbox-plugin to work with the theme.

Example page: http://www.jokamies.fi/autoharrastajien-kokoontumiset-alkoivat-taas-mustanlahden-satamassa-tampereella-katso-kuvat/

Newspaper version 6.7

Bichareh
Participant
#0

Hi,

how can I add the rel=”prev” and rel=”next” attributes to my static front page pagination?

The following code is working with categorys and tags, but not on my front page. It refuses to show the rel=”next”. http://www.promicabana.de

function cor_rel_next_prev_pagination() {
global $paged;
if ( get_previous_posts_link() ) { ?>
<link rel="prev" href="<?php echo get_pagenum_link( $paged - 1 ); ?>">
<?php
}
if ( get_next_posts_link() ) { ?>
<link rel="next" href="<?php echo get_pagenum_link( $paged + 1 ); ?>">
<?php
}
}
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head');
add_action('wp_head', 'cor_rel_next_prev_pagination');

Thanks!

djgruber
Participant
#0

I have enabled the “SUMMARY” button in Settings > reading , in my main wordpress admin, and have added a “read more” tag in my posts, but it is still showing the entire post on each page. Looking to add a “READ MORE” button to each post, encouraging readers to click and improving SEO.

see example:
https://www.packagefromsanta.com/tests/Capture6.jpg

Is that built in to the Newspaper theme somewhere?

Thanks in advance,
DJ

Andrei L.
tagDiv Member

Hi

You’ll need a custom function which convert published post date to unix format then compare the result with a value which will also be unix format. Basically you’ll need a variable which store the published date for current post and another variable which store the date to compare. Here you can find some useful information in this regard: http://php.net/manual/en/datetime.settimestamp.php
This is a complex task which require many customizations and tests in order to be achieved.
We can’t offer customization services at the moment so 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.

Thanks for your understanding!

mariomontanari
Participant
#0

how to modify category page for how many posts view before pagination.
Example: I have a category with 4 columns and 3 lines (article display view M3) + category top post style grid 2.
I need to have more lines before pagination and not incomplete line with only one post (please see screenshot http://www.bestlap.it/more.jpg )
thanks!

ilnegozio
tagDiv Member

Hi Bogdan,

A million thanks to you.

1. You are a amazing, I manage to put Facebook Comments now without having a Facebook plugin.
Guys I wanna share this to you anybody out there who tried to put FB comment instead of the default one.
Source: Link Here

Here’s what I did:

1. In order to implement facebook comments, you have to disable the theme comments and then place the facebook comments shortcode in the template files.
You have to do this for every post style you use on your site. every post style has it’s own file.
Theme Panel > Post Settings > ENABLE COMMENTS ON POSTS
Enable or disable the posts’ comments, for the entire site. > Disable – Credits to Bogdan B.

2. Add the following code to header.php located /wp-content/themes/Newspaper

after this line: <body <?php body_class() ?> itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WebPage”>

add this code:

<div id=”fb-root”></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.5&amp;appId=XXXXXX”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>

end to before this line: <?php //this is closing in the footer.php file ?> – Credits to Chris S.

3. Add the following code to loop-single.php style and this depends what style number you are using, know or add it to all
styles. My style is loop-single-12.php

add this code:

<div class=”fb-comments” data-href=”<?php echo get_permalink($td_mod_single->post->ID); ?>” data-width=”100%” data-numposts=”5″></div>

end to before this line: <?php echo $td_mod_single->related_posts();?> – Credits to Andrei L.

4. If you are facing this issue “Only one issue–the comment count is appearing twice on our site (www.alaskapublic.org), once in the body of the post and once below. I’d like to delete the upper one. Our comment count is disabled in the theme panel.

Screenshot: http://www.alaskapublic.org/wp-content/uploads/2016/04/Screen-Shot-2016-04-12-at-4.12.41-PM.png&#8221; – @sarahglaser

Soln:

Try this css in theme panel > custom code > custom css to hide the first comment counter: http://screencast.com/t/ZyTOiRdT

.fb_comments_count{
display: none;
}

– Credits to Andrei L.

Note to tagdiv staff/admin: Please feel free to remove this comment if not allowed here.

Regards

Catalin
tagDiv Staff

Hello,

This error -> http://screencast.com/t/XW2ZouO2hQe comes up in the search/block 21/module 16 when a post has no featured image set to it. This is the case because the search uses the default WP thumbnail. We are working on a fix for this and until we can implement it, you can use this workaround:

You need to edit td_config.php and add this code:

td_api_thumb::add('thumbnail',
array(
'name' => 'thumbnail',
'width' => 150,
'height' => 150,
'crop' => array('center', 'top'),
'post_format_icon_size' => 'normal',
'used_on' => array(
'Big grid 1, 3, 7 - small image'
)
)
);

It should look like so: http://screencast.com/t/RTkWKH6me
Basically, you are just adding another thumbnail to the list in between the existing ones. Then the error will not display anymore.

I recommend you to change the module for Search from Theme panel, like this -> http://screencast.com/t/I0AmPRbybZZN

Hope this helps and let us know how it goes!

Thank you for the message!

skyscorcher
tagDiv Member

Hi, I tried to remove the elements that I had left and right but this didn’t fix the issue. Moreover it brought all the icons on the left (they are not centered any more).

Here you can look how it looks like:

http://quirktools.com/screenfly/#u=http%3A//puppies4all.com&w=375&h=667&a=37&s=1

Here is how it looks on the inside of the page with the visual editor.

https://db.tt/NfmZ9jmS

Anything else I can do about it?

Thanks

Bintmusic
tagDiv Member

Hi,

even with your suggestion removes the hyphen and the destination also for the other authors …

on the other hand does not take off

<Meta property = “article: modified date”
<Meta property = “og: updated_time”

and even

<Meta itemprop = “datePublished”
<Meta itemprop = “DateModified”

Any suggestion?

Perhaps it may be easier to delete all displayed dates and meta only for older posts, for example those older than one year? In this case, how could I do?

Thanks!

Catalin
tagDiv Staff

Hello occhiodifalco,

I have checked your website I saw that you have a lot of additional customization for this type of header that breaks the layout and cause a bad design. If you want to return to the default settings, you have to clear all your custom CSS code to this section -> http://screencast.com/t/Ca7gkrnyi and also, if you want to have a bigger logo you have to switch your header style to another one that supports it, as example header style 11. For more information about our header styles, please check our documentation here -> https://forum.tagdiv.com/header-styles/
Also, please notice that if you want to change the structure of your header style 3 as you wish, involve custom work and we cannot provide this type of service at the moment, sorry!

Thank you for your understanding!

Andrei L.
tagDiv Member

Hi

1 You can remove category tag for each category from theme panel > categories section: http://screencast.com/t/98dby074BF

2 The file which generate big grid is td_block_big_grid.php: http://screencast.com/t/6vDxAmP4K

3. Theme’s fonts files can be found in images/icons/ folder: http://screencast.com/t/mIqCDN1LMMIk
Thanks!

Andrei L.
tagDiv Member

Hi

The theme have options which allow you to display taxonomy tags on custom post types. Here is an example: http://screencast.com/t/Nmyr92I33 – http://screencast.com/t/WMJ7a9wHcckS – http://screencast.com/t/cccXchFx3n

At the moment you can filter posts only by custom post types, not by custom taxonomies in Visual Composer.
We plan to extent theme’s flexibility in future and maybe a sorting by custom taxonomy will be available. However I can’t promise anything in this regard as this is a very complex task and some investigations must be made before. Also we have a long implementation list and we need to chose carefully what features we add.

Thanks!

Andrei L.
tagDiv Member

Hi

You have to add a contrition in function which generate feature image on modules: http://screencast.com/t/42HoZr6j First you have to get post’s category then use it in your conditions. A basic example will be like this:

if ($cat_id == 5){
return;
}

This is just a basic example but to achieve your goal are required some additional customizations which involve good codding skills. We can’t offer customization services at the moment so 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.

Thanks!

Catalin
tagDiv Staff

Hello efaq,

1)As I have explained you above, the block buttons are made them with some custom rule. Also, please notice that the main element is WP Custom menu from Visual Composer, this have a custom class named .td-menu-blocks-custom Also, you have to make your own desired menu from Appearance->Menu from WP panel and then you have to use this visual Composer element with this custom class to get the Custom CSS design, like this -> http://screencast.com/t/i834fsDw -> http://screencast.com/t/Th9oEVLMM -> http://screencast.com/t/WWt2yabWiMv and as an example result -> http://screencast.com/t/7Mtx3fdFGNRd

2)So, please notice that our theme uses a lof of thumbs and sizes to display the featured images. Please check this -> http://screencast.com/t/mKgjef3g5UFF and there you can see a list with our modules and what kind of modules are used in our blocks and also, which of them are enabled or which not. Also, from the Thumbs on modules & Block, you will turn off some options for size and that size are used in some blocks that are active, the featured image will not be shown because the thumbs for this type of block are deactivated. I hope that you understand by explanation.

3)Also, if you want to add some link in our footer section, you have to use a footer template that allows you to make it as you wish, for example, the footer template style 5 and then you have to use a bit of HTML code to add a link, using this syntax -> http://www.w3schools.com/html/html_links.asp

Thank you for your understanding!

gzelasco
tagDiv Member

Hi !

Im using block 5 for Home Page
Take a look: http://chamorro.demo-page.info/

Block5 have 3 main feature posts

What I need to do is:

Feature#1 – Last post for same category , for Example “Economy”
Feature#2 – Last post for same category , for Example “Politics”
Feature#3 – Static image that will link for a specific page

Make sense?

Alin [tagDiv]
tagDiv Staff

Hi,

If you want to modify the sticky menu height, you could try to use custom css in Theme Panel > Custom Css, for example – http://screencast.com/t/SGVbrR21pb

.td-header-style-7 .td-affix .td-header-sp-logo {
height: 66px;
}
.td-header-style-7 .td-affix .td-header-sp-logo img {
max-height: 66px;
}
.td-header-style-7.td-header-wrap .td-affix .sf-menu>li>a {
line-height: 66px !important;
}
.td-header-style-7 .td-affix #td-top-search {
bottom: 7px;
}

If you don’t have html/css experience I suggest to get someone to help you, as we are not available for custom services.

Thanks!

ryanjake
tagDiv Member

Dear Sirs,

I am using the menu settings below;

Header Style: Style 7 – Hybrid Menu on right with logo
Top Bar &amp; Menu – Off
STICKY MENU: Always at the top of the pages

I would like to increase the size of my header and logo same as: http://www.windowsmechanic.com/. Can you please let me know the best and easiest way to achieve this?

Thank you in advance, and I look forward to our prompt response.

Kind regards,
Ernest

Andrei L.
tagDiv Member

Hi

Not all theme’s modules display Read More button so in order to have it on page you’ll have to use a module which have this button in its structure. For example you can use module 11 or block 12: http://screencast.com/t/5mhgRrGvZZsD – http://screencast.com/t/P0hXpFOS6bbG
The excerpt’s length can be set from theme panel > excerpts for each module: http://screencast.com/t/coHOqbW3
The theme don’t control site’s url structure and can’t force the browser to display www.

Thanks!

Catalin
tagDiv Staff

Hello nirmal___,

If you want to have the ad below your menu logo bar, you have to use another header style, for example, header style 5. For more information about our header templates, please check our documentation here -> https://forum.tagdiv.com/header-styles/ -> https://forum.tagdiv.com/logo-favicon/

Thanks.

Catalin
tagDiv Staff

Hello five40,

If you want to check your smart list post, you should try to use the similar code which is using in our td_module_single_base.php, like this -> http://screencast.com/t/PwoI2IJND For example, you can add this check in loop-single-1.php (if you are using the post template 1), like this -> http://screencast.com/t/psNBdso1Z

Hope this helps!

Thank you for your understanding!

Bogdan B.
tagDiv Staff

Hi,

You can use this css to do it:
@media (max-width: 767px){
.td-header-style-5 .td-main-menu-logo img {
max-height: 70px!important;
}
.td-main-menu-logo img {
max-width: 185px;
}}

You can change the size in the code to fit your needs. Careful of the smaller screen devices though as if you increase the logo too much, on an old iphone for example, the logo could overlap the hamburger menu.

Thank you!

Catalin
tagDiv Staff

Hello Koenza,

Please notice that if you are not using the name for your block and you are using the Ajax Filter you will have this case. So, you can set the title for your block and then the ajax filter will be displayed fine or you can use a bit of CSS code to add a padding-top for your block.

The code is ->

.td_block_1 {
padding-top: 35px;
}

The result -> http://screencast.com/t/95t8opAKCt

Notice: This is just an example for Block 1 !

Thanks.

Andrei L.
tagDiv Member

Hi

You can use do_shortcode function in category.php file to display a custom content for a specific category. First you have to create the content in Visual Composer, then switch in backend editor, copy the shortcode and paste it inside do_shortcode function. Here is an example: http://screencast.com/t/TjJpQicbC – http://screencast.com/t/1DvdbdCzz – http://screencast.com/t/3Wl63bkLU

<?php
if (is_category('category-id/slug/name')) {
    echo do_shortcode('your-shortcode-goes-here');
}?>

You have to add in above condition the name/id/slug fur the category where you want to display your custom content.

I hope this helps.
Thanks!

  • This reply was modified 10 years by Andrei L..
  • This reply was modified 10 years by Andrei L..
Viewing 25 results - 32,801 through 32,825 (of 38,683 total)