Search Results for 'page template'

Results from the Forum
Amit
tagDiv Member

Thanks Simion C.
I tried but this does not solves my problem,
It requires categories at the back-end!,

What I need is a Page formatted like Post type 7, so that I can save it as a template in VC and can reuse it when needed.
Please point me to a solution.

Thanks

Jerrad
tagDiv Member

I just figured out where the conflict is happening with Gravity Forms and Newspaper… which may also be in the same place for Newsmag!

Using Google Chrome Developer tools, I was able to trace back the error to the td_wp_booster_functions.php file where there’s some code for “css for wp-admin / backend”. It’s just this CSS code that seems to be causing the issue because I tried commenting out the javascript section and it didn’t help.

When I commented out the lines 382-399 and uploaded the file to the server, I was able to use all the tools on the Gravity Form pages which I wasn’t able to before. Of course now that I have done this, the Newspaper settings pages are not styled correctly and are completely non-functional.

Which wp-admin pages does this CSS script need to load besides the Newspaper/Newsmag admin pages = Welcome, Plugins, Install Demos, Support, System Status, and Theme Panel? Is it needed on post type edit screens? Is there a way to modify the code below to make it work on the required pages and not load on other plugin settings?

add_action('admin_enqueue_scripts', 'load_wp_admin_css');
function load_wp_admin_css() {
//load the panel font in wp-admin
$td_protocol = is_ssl() ? 'https' : 'http';
wp_enqueue_style('google-font-ubuntu', $td_protocol . '://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic&subset=latin,cyrillic-ext,greek-ext,greek,latin-ext,cyrillic'); //used on content
if (TD_DEPLOY_MODE == 'dev') {
wp_enqueue_style('td-wp-admin-td-panel-2', td_global::$get_template_directory_uri . '/td_less_style.css.php?part=wp-admin.css', false, TD_THEME_VERSION, 'all' );
} else {
wp_enqueue_style('td-wp-admin-td-panel-2', td_global::$get_template_directory_uri . '/includes/wp_booster/wp-admin/css/wp-admin.css', false, TD_THEME_VERSION, 'all' );
}

//load the colorpicker
wp_enqueue_style( 'wp-color-picker' );

// load the media library - necessary for block widgets with image params
wp_enqueue_media();
}

Thanks,

Jerrad

szm218
Participant
#0

I’ve had the theme loaded for a few weeks now, but want to use the templates. Once I choose a home page template and change WP to point to that – my site locks up with too many redirects. I switch it back to latest post – site runs instantly.

Please help!

travisnw
Participant
#0

Totally ignorant here about how to insert structured data as JSON-LD markup. I really need to figure out how to insert it for recipes. But in the meantime I just created this markup for a product on my website using Google’s Structured Data Markup Helper. What do I do with it? Do I insert it into the header code area of the product’s landing page?

And more importantly, if I insert it on the landing page for this product is, will it screw up the Newspaper theme? I don’t want to slow anything down. But I think my recipes, especially, are going to suffer in mobile searches without it. Thanks in advance to anyone who can help shed light on this!

<!– JSON-LD markup generated by Google Structured Data Markup Helper. –>
<script type=”application/ld+json”>
{
“@context” : “http://schema.org&#8221;,
“@type” : “Product”,
“name” : “THE INTERIOR DESIGNER’S PERFECT PITCH LETTER FOR PUBLISHING”,
“image” : “https://www.travisneighborward.com/wp-content/uploads/2017/07/Landing-Page-Perfect-Pitch-letter-500×687-WEB-OPT.jpg&#8221;,
“description” : “A FREE TEMPLATE that will make sure you don't leave any information out when you pitch projects to editors”,
“brand” : {
“@type” : “Brand”,
“name” : “Travis Neighbor Ward”,
“logo” : “https://www.travisneighborward.com/wp-content/uploads/2016/08/TNW-logo-version-12-400x199px-WEB.jpg&#8221;
},
“offers” : {
“@type” : “Offer”,
“price” : “FREE”
}
}
</script>

Bogdan B.
tagDiv Staff

Hello,

If you want to remove the ad for the 404 page, you will have to edit the theme code as there is no option in this regard.
You will have to wrap the header ad code in a condition to check if it;s a 404 page and not display the ad there.

<?php
if (!is_404() ) {
locate_template('parts/header/ads.php', true);
}
?>

https://www.screencast.com/t/2yhREtnUDHjd

You will have to do this for the heaeder style that you use.

Thank you!

Pumbany
tagDiv Member

This means that the demo templates you offer are not useful if I need to recreate the page using tag div composer.

Do you know what Block and grids and setting you used in you demo called “Health and Fitness” so that I can take a new blank page and create it to look the same.

d_alinus2004
tagDiv Member

Hello,

I try to place your code on the category template.
For example, i use the 7′ template category. The code it’s next:
Where i must add the short code <?php echo do_shortcode (‘[td_block_ad_box spot_id=”custom_ad_1″]’); ?>

I try to add on the end but he broke my page!

<?php
class td_category_template_7 extends td_category_template {

function render() {
?>

<!– subcategory –>
<div class=”td-category-header td-container-wrap”>
<div class=”td-container”>
<div class=”td-crumb-container”><?php echo parent::get_breadcrumbs(); ?></div>
<div class=”td-category-title-holder”>

<h1 class=”entry-title td-page-title”><?php echo parent::get_title(); ?></h1>
<?php echo parent::get_description(); ?>

</div>
<div class=”td-pulldown-container”><?php echo parent::get_pull_down(); ?></div>
</div>
</div>

<?php
}
}

DaveS
Participant
#0

Hi guys,

I need support for the following:

I have all together 6 sidebars. 4 of them are serving specific sections of the site, and 2 of them are serving other sections of the site that are woocommerce/shop related.

I use a simple wordpress page as a “home page” of the shop section (domain.com/магазин/), and that page is built up using visual composer under Pages.

I see in the admin panel of the theme that there’s an option to enable sidebar for Shop Home page + Shop Archives (this is part of the integrated to the theme woocommerce options). All good on shop category/archive pages because they use a standard template for products, but the activated sidebar breaks the design of our shop’s “home page” (domain.com/магазин/).

Note: the sidebars displayed on the shop home page and shop archive pages are different.

I need to stop that specific sidebar (or any other) from rendering on the shop’s “home page” (domain.com/магазин/), but I need to keep showing all other sidebars on the respective pages.

I’m unable to choose whether to use a sidebar under the options of the shop’s home page itself.
Also, if I choose not to show a sidebar on the home + archives shop sections by default (from the theme’s panel options), I’m unable to activate any sidebar under the options of the archive (woocommerce) pages even opening them manually one by one, no options.

Any help will be greatly appreciated.

Thanks

simchris
tagDiv Member

WooCommerce is a plugin, which is what Bogdan was referring to.

Basically, you might need to create a custom search template and put into the woo template structure, as outlined in their pesky docs for all template over-rides.

https://docs.woocommerce.com/document/template-structure/

Basically Woo templates are part of wooCommerce and NOT the theme, technically. The theme may have WC support and have some custom themes setup to over-ride the default WC theme templates.

So only real options are
a) over-ride the WC search template in the woocommerce plugin folder
b) make custom search template in the THEME, which goes into the THEME woocommerce folder containing WOO over-rides.

A bit confusing. I went through this myself when I needed to add custom messages on the checkout page, order page, login page, etc. — where for some stuff you have to add filters for woo, and in others hard-edit the woo template files.

Simion C.
tagDiv Staff

Hi,

If you mean access to the Visual composer template library, I believe that feature is available only for purchased plugin licence. Not for the bundle version provided in the theme package.
You could use a Homepage post element, somewhat similar to the post template
https://demo.tagdiv.com/newspaper/homepage-one-top-post/
Or a Full Big grid
https://demo.tagdiv.com/newspaper/full-big-grid-1/
Or even the Revolution slider maybe
https://demo.tagdiv.com/newspaper_politics/
There is no exact element like that post template is designed at the moment, using the tagDiv composer.

Thanks

simchris
tagDiv Member

No worries. WooCommerce is not part of the theme, and generally any ‘customizations’ for Woo have to be done as part of the Woo elements, such as custom template mods, function hooks to change messages on pages, behaviors, etc.

So, Google good place to look, if there is NOT already a custom 404 theme template inside the woocommerce folder within the theme itself (have you looked in there yet?).

E.g.,

I had to customize the heck out of our WooCommerce install end of 2015, so went through the hideous learning curve on how a lot of stuff with Woo should be in the Woo panel but they have cottage industry selling plugins on annual basis, or want you to make custom hooks in a function to change obvious things like “message on the login page” or “remove shipping address on checkout page” which really should be simple on/off stuff in Woo, or at least offered in single “extend Woo” plugin for all the stupid stuff that can’t be done with a theme or in Woo “directly.”

Anyway — just food for thought. Theme itself doesn’t control custom Woo templates, was my point; but you can add over-ride templates by putting them in a woocommerce folder inside the theme.

Woo DOCS:
https://docs.woocommerce.com/document/template-structure/

Amit
Participant
#0

Hi Tagdiv,

I want to make my page look like Post Template 7 without sidebars and
with the option of having sidebars later if need be.
Can this be done, is there any way to accomplish that.

I remember, there use to be some types of templates in visual composer,
such as landing page etc. how to get those templates for free,
since VC is already bundled with N8.

Awaiting an insightful & helpy 🙂 reply

Thanks Tagdiv

Pumbany
Participant
#0

I had an existing site using the Newspaper theme and I just added the plug-in Tag Div Composer and Deactivated Visual Composer. Then I downloaded one of the demo sites called “health & fitness”. (And I see that my old blog posts are showing up which is good).

since I am using your demo site. Do I need to totally recreate the site pages with Tag Div Composer?
And do I delete the old version of the pages?

If I need to do this then how do I do this? I am not sure where to start.

(When I edit the page using Tag Div Composer I see red bars at the top of the screen that say Invalid Page Template)

aleminopuy
Participant
#0

Hello!

I’m migrating my website from another theme to Newspaper. The website is a media aggregator type of thing. We have a podcast category, in which different podcasts have one post that contains some information about the show and a player.

I’m looking for a way to implement some sort of an ajax filter (like the homepage blocks) on the category page. I need for my users to be able to easily pick what type of podcast they’re looking for, and see those posts come up. And the subcategory listings that come up on some of the category page templates (3, 4, 8, etc) don’t do the job. I don’t want users taken to another page, I’d like the results on the page to filter right there, and have the filters available the whole time so people can switch around what they have selected.

To get an idea of what I’m talking about, you can visit the current site’s podcast page at benevore.net/podcasts

I picked Newspaper because I thought it could handle organizing a lot of information, and if there’s not a way to implement this, I’ll be very disappointed.

Ken0929
Participant
#0

Hi,
My function.php (Child-Theme) can not be applied.
What am I missing?

<?php
/* —————————————————————————-
Newspaper V6.3+ Child theme – Please do not use this child theme with older versions of Newspaper Theme

What can be overwritten via the child theme:
– everything from /parts folder
– all the loops (loop.php loop-single-1.php) etc
– please read the child theme documentation: https://forum.tagdiv.com/the-child-theme-support-tutorial/

– the rest of the theme has to be modified via the theme api:
https://forum.tagdiv.com/the-theme-api/

*/

add_action(‘init’,’add_categories_for_pages’);
function add_categories_for_pages(){
register_taxonomy_for_object_type(‘category’, ‘page’);
}
add_action( ‘pre_get_posts’, ‘nobita_merge_page_categories_at_category_archive’ );
function nobita_merge_page_categories_at_category_archive( $query ) {
if ( $query->is_category== true && $query->is_main_query() ) {
$query->set(‘post_type’, array( ‘post’, ‘page’, ‘nav_menu_item’));
}
}

function custom_wp_tag_cloud($args) {
$myargs = array(
‘orderby’ => ‘count’, //使用頻度順
‘order’ => ‘DESC’, // 降順(使用頻度の高い順)
‘number’ => 40 // 表示数
);
$args = wp_parse_args($args, $myargs);
return $args;
}
add_filter( ‘widget_tag_cloud_args’, ‘custom_wp_tag_cloud’ );

// 固定ページにタグを設定
function add_tag_to_page() {
register_taxonomy_for_object_type(‘post_tag’, ‘page’);
}
add_action(‘init’, ‘add_tag_to_page’);
// タグアーカイブに固定ページを含める
function add_page_to_tag_archive( $obj ) {
if ( is_tag() ) {
$obj->query_vars[‘post_type’] = array( ‘post’, ‘page’ );
}
}
add_action( ‘pre_get_posts’, ‘add_page_to_tag_archive’ );

add_theme_support(‘post-thumbnails’);

/* —————————————————————————-
add the parent style + style.css from this folder
*/
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’, 1001);
function theme_enqueue_styles() {
wp_enqueue_style(‘td-theme’, get_template_directory_uri() . ‘/style.css’, ”, TD_THEME_VERSION, ‘all’ );
wp_enqueue_style(‘td-theme-child’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘td-theme’), TD_THEME_VERSION . ‘c’, ‘all’ );

?>

DaveS
Participant
#0

Hi,

for some reason the default woocommerce search doesn’t function properly on our shop so I installed the
Advanced Woo Search. It uses a simple shortcode to render wherever placed [aws_search_form].

When a user makes a search, the results are returned using the default woocommerce category template. I’m happy with this, but when there are no results, an empty page loads, which is bad for user experience and for the sales.

Is it possible and is it an acceptable practice to redirect the visitor to a customized page (a normal wordpress page with its own url) when there are no search results in woocommerce? If yes, how can I do that?

Thanks for your support

MrOrsh
Participant
#0

I have started experimenting with moving to the Gadgets template for my site. However I have encountered an issue where the Main Menu is overlapping the content on standard pages (like the homepage) that uses the default page template. If I change the template to for example “standard template + heading” the issue goes away. However I do not want to have a header (that says “Home”) on the top of my frontpage.

It is like the Main menu gets floated over the content. And that the content starts at the top of the page with the Main menu placed on top of it. Maybe a fixed position issue somehow?

What can be done about this? The issue doesn´t seem to be present at the demo page (https://demo.tagdiv.com/newspaper_gadgets/). However I have a hunch it might have something to do with the fact that the top pictures are aligned directly with the menu (as seen in the demo). I.e there is no space (padding) between the menu and the beginning of the actual content.

Hope you understand what I mean. Can´t send you a link unfortanely since the test-site is only backend.

Simion C.
tagDiv Staff

Hi,

1. By default the front page displays a list of your latest articles (blog). If that is what you want it to display, the module can be changed in the Theme panel->Template settings
https://www.screencast.com/t/8VpT8n4gm8JK
That controls how the posts will look, an also allows you to choose a sidebar for the page.
However, you can build your own homepage with the tagDiv composer
https://forum.tagdiv.com/homepage-how-to-build-and-set-it/
More information about the composer here
https://forum.tagdiv.com/tagdiv-composer-tutorial/
The available block settings are mentioned in this guide
https://forum.tagdiv.com/block-settings-guide/
You can see how all the blocks, big grids and full big grids look here (check the features menu)
https://demo.tagdiv.com/newspaper/

2. The tagDiv composer is a front-end page editor, so you can see how the page will look while building it. If you mean changes in the theme panel, those cannot be previewed. You will have to save the settings in the theme panel, and then see them on the website.
Please correct me if I misunderstand something.

Thanks

brettworth
tagDiv Member

Hi Bogdan, you appear to be incorrect as I was able to figure it out with a bit of custom CSS. Perhaps you misunderstood my question?

By using the code below I am able to use the homepage post in a full-width layout without it forcing a boxed layout.

.td-boxed-layout .td-container-wrap {
width: 100%;
}
.td-post-template-8 .td-post-header {
width: 100%;
}
.td-post-template-8 .td-post-header-holder {
padding: 20px 98px;
}

coursey
tagDiv Member

I had been on the setting page many times. I had searched here but got the idea the author card would not go away — so I missed the switch!

I turned off related posts and the discussion entry box still seems too low on the page. Can I move it up and keep it above related posts?

Also, yes I am stupid, but I stumbled upon how to add a sidebar widget to the posts template, but don’t see how to do the same thing for the home page template. I am very glad I am using this template.

Thanks!

eduardoribeiro
tagDiv Member

Tks Catalin, but I’m testing on localhost.

I’ve changed the template and it’s working.

But in that specific case, template M15 in the index page and read more tag on posts, there is a bug.

mattemkadia
tagDiv Member

Hi Bogdan, I’ve tried various things but it definitely seems like once the module is registered as a block in td_config.php and used on a page inside visual composer it loses the ability to properly select the post meta ACF field values.

I use ACF inside single post templates and all works fine, I used ACF in category view with a custom registered module and all works fine, it’s just when the same module is registered as a VC Block, all ACF values are lost.

Any ideas?
Matt

ventunosrl
tagDiv Member

Ciao Simion,

I totally understand what is that div for and I find this feature really useful.
I’m just saying that maybe shouldn’t be there for not logged-in users. Without the admin bar it’s useless (at least) code that makes HTML heavier for no reason (IMHO).
I can see this behavior on you demo page too and on several sites built on Newspaper template as well.. not being logged-in, of course.

Can I simply take off this part of the code or is there any way to disable the feature? what I was asking for is if there’s any reason for this div to appear to anyone.

I still haven’t got the chance to check if there’s anything else in the code we could get rid of to lighten the HTML weight a bit more.

Thanks again!

Simion C.
tagDiv Staff

Hi,

Thank you for your appreciation. The mobile version of the website will display the same elements form desktop, adapted for mobile devices. There is no option at the moment to not display particular elements on specific devices.
An optional mobile theme is provided with the theme, in the package. You can find more information about it here
https://forum.tagdiv.com/the-mobile-theme/
The mobile theme has predefined templates for pages, posts, category pages etc. It will not display composer elements, content for the mobile pages is limited to the mobile editor.

Thanks

Amit
Participant
#0

It’s a side-effect of how the sitemap is generated by Yoast SEO (and I presume other sitemap plugins). They exit as soon as they send the sitemap to the browser which stops WordPress actions and filters from running. They don’t always set the current URL as a feed either.

For reasons long forgotten, but probably related to working around plugins that change the is_feed() settings WP-Super-Cache caches the status of the current page. It then uses that information to see if it should skip caching the page. That caching is fired on the “template_redirect” action, but since the sitemap plugin has exited that action won’t fire. Then later, the plugin checks if is_feed() is true (it should use the cached information, that’s an oversight) but since the sitemap plugin doesn’t set that either, it’s not.

As a result of is_feed() returning false, the plugin caches the sitemap as an anonymous html page which uses the text/html content type, not text/xml.

As a temporary fix, you can add the following to the Add here strings (not a filename) that force a page not to be cached in ADVANCED setting section.

sitemap(_index)?\.xml(\.gz)?
([a-z0-9_\-]+)?sitemap\.xsl
[a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)?

Viewing 25 results - 14,801 through 14,825 (of 18,570 total)