Search Results for 'page template'

Results from the Forum
Andrei L.
tagDiv Member

Hi

Please address us in English next time as we cannot understand your request.
Thanks for your understanding!

I assume that you want to customize the category page with elements from Visual Composer. By default this s not possible as the theme allows only pages to be edited with Visual Composer, not the category page. However this can be achieved by modifying the code. You can check this topics where I offered similar solutions for Newsmag theme: https://forum.tagdiv.com/topic/different-ad-tags-for-the-category-templates-vs-the-homepage/https://forum.tagdiv.com/topic/how-do-you-filter-the-category-top-section/

Note that this is a complex task which require good coding skills and also many customizations 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!

Bogdan B.
tagDiv Staff

Hello,
I assume you are talking about the post titles (on a post page, not on the homepage). There is no setting for this so you will have to edit the theme files to do it. You will have to edit every post template (file for every post template you use) and simply move over the subtitle code above the main title:
http://screencast.com/t/YXh0xGi5PSZ
Thank you!

Andrei L.
tagDiv Member

Hi

The theme dos not have an option to add a tracking code only for some specific posts. You could try a plugin with a similar functionality but I can’t make any recommendation in this regard as we didn’t tested any of these plugins with our theme and I can’t say hoe they will work.
Also you can try to modify the file corresponding with the post template used for the promotional posts and add the tracking code there. For example let’s say that you’re using post template 1 for these posts. In this case the file that must be edited is single_template_1.php You have to check where the tracking code must be added on the page. Usually should be added after in page’s header or in footer: http://screencast.com/t/BPiF5uuA8huShttp://screencast.com/t/IRtdqCzNt30
Ideally would be to choose a specific post template only for the promotional posts so the tracking code to apply only for these posts.

Hope this help.
Thanks!

newtag
Participant
#0

Hi,

i tried to use the booster plugin to defer load my js and css files – dont work. Not one file are moving from his place. I defined a custom wp-content directory as always in the config.php and im using a child theme. i also changed the name of the theme. Everthing works fine – but the plugin dont work. I followed the instruction of the booster plugin manual – no conflict with other plugin – i used it alone….

Then i removed the plugin, because i found following piece of code on stackoverflow to defer load the js files. Works fine:


if ( ! function_exists( 'add_defer_to_js' ) && ! is_admin() ) {
function add_defer_to_js( $url ) {
if ( FALSE === strpos( $url, '.js' ) ) {
// not our file
return $url;
}
// Must be a ', not "!
return "$url' defer='defer";
}
add_filter( 'clean_url', 'add_defer_to_js', 11, 1 );
}

NOW MY PROBLEM and my Hope you can help me out. The only parts of my site, wich does not display correct anymore is the homepage full block AND the (same) Single Post Template (DEFAULT SITE POST TEMPLATE Style 8). This is the shortcode to reproduce it on the mainpage:

[td_block_homepage_full_1 category_id=”” category_ids=”2558″ post_ids=”” tag_slug=”” autors_id=”” installed_post_types=”” sort=””]

I compared the source of my site with the defer code and without – no changes.

QUESTION:

ANY IDEA HOW TO FIX THIS? Nny help would be appreciated

Thank you so much

newsblaze
Participant
#0

I couldn’t get Visual Composer to work on my news site.

So I just added a dev subdomain and installed a fresh WordPress, with no plugins, added Newspaper 6.7, activated the theme and added Visual Composer plugin.

VC still doesn’t work for me.

If I create a new page and click “Backend Editor” I see the VC panel.
But when I click Add Element or Add Template, nothing happens.
Adding a text block works, but thats not very useful, except it shows something works.

There can’t be a plugin conflict, so that must mean VC is looking for something that it isn’t finding – what is it?
Is it permissions? How do I debug it?
(I turned on debugging, but there are no errors listed.)
I loaded DebugBar – it also shows no problem.

Alan.

Phonetic
tagDiv Member

I’ve tested another upgrade on a different backend and samme error after update (with no update to VC.

I suspect it’s related to the visual composer changes you’ve made to the code in 6.7:

fix: removed some old Visual Composer detection code from td_wp_booster_functions.php, it was causing an error in certain cases
fix: improved the Visual Composer detection code inside the default page template file, it was triggered when the shortcodes didn’t have unique names(ex. Woocommerce shortcodes)

ntropy
tagDiv Member

Thank you for your reply Chris.

The problem that I’m encountering is that WC pages do not fit within the theme’s template layout. They break the left and right margins of the theme.

Could you please assist in finding a solution for that?

Thank you again.

Akif Hameed
Participant
#0

Hi,
I’m using the ‘module 14’ in my ‘article display view’, which is the sub menu in ‘categories’ in the theme panel. I’ve changed the article title font of module 14 by using the sub-option ‘modules and blocks – article title’ under theme font. It works but when I refresh the page of my website then it automatically changes to another font. At the same time by refreshing it again it comes back to the font of my choice. This procedure is repeating every time when I refresh the page of my website.
The same problem is with the individual posts. I’m using the default template for individual post view but the same problem is there.
Kindly explain how to fix this issue.
I also want to change the change the font of post that’s some part appears under the article title of website’s homepage.
I also want to know about the ‘General Font’ tab that appears at number 1 under the ‘modules & blocks -article title’, ‘modules mx and other block- article title’ & ‘post-title’. (theme fonts).
Regards

blawrimore
Participant
#0

My site is a local news site with over 900 posts going back several years. With my old themes the newest posts showed at the top. The problem with the Newspaper 6 theme is many posts are showing up on the home page template from years ago. How do I restrict the posts to the most recent ones?

Catalin
tagDiv Staff

Hello cstyn,

The simplest way to have the H1 tag on your homepage is using the pagebuilder+page title as the template, like this -> http://screencast.com/t/6iO24JGCPUR and then your page title will have H1 tag. Another possibility would be to use a text block for your homepage and set the H1 text as in the example above. In the next major update, we will implement H1 tag in the logo section but until we will release this you can use these methods.

Thank you for the message!

simchris
tagDiv Member

Make a custom post type, add the text to custom single post template; then on sponsored posts use that custom post type of “sponsored” … kind of need to use plugin, or “roll your own”…

Trick is that a lot of news portals are against the concept, while others are 100% sponsored spam content; and then the ones in the middle are setting it up for themselves based on what they are trying to do.

You also have to deal with making the sponsored post ‘sticky’ on front page if in middle of organic content stream, which is a bit like injecting ad in middle of a query loop for all posts …

So – might be plugin to do this, but CPTs are most likely method.

(( I don’t work here … ))

gmpand3
Participant
#0

Thanks for the help, in advance. I created a new template I would like to use as the category/taxonomy template for woocommerce categories and it’s working great – basically a replica of the existing page-pagebuilder-title.php template. However, I am trying to make one minor mod and add the featured image for the category as a header image. Any assistance would be helpful. Here is the code I have been working with:

http://pastebin.com/9UisFzmY

which is missing the featured image. Any assistance would be awesome. Thank you!

simchris
tagDiv Member

Don’t suppose you’d be willing to switch on the amp plugin, and try the hook in functions to see if it does add it to /amp/ template via the hook provided? And see if it increments.

I’m on the front lines with this, but you’re going to get snowball of queries about this since Google will start pushing ALL its mobile traffic on compatible devices to the AMP version, and so the “counter” will not increment normally with TD themes, and some will think their audience dropped (although one can tell from the transients going way up that AMP versions being served).

I’m basically looking for working code — perhaps you’d consider adding an “tagdiv amp glue” plugin which adds the code into just the amp version via the provided amp header hook — this doesn’t need ajax since amp doesn’t use javascript.

You’re going to get a ton of queries for this — since amp is intended for news sites primarily, as are the themes — and to put it bluntly — this will actually be a superior selling point on ThemeForest to have “AMP counter support” — since almost nobody has noticed yet that their counters aren’t incrementing, but they soon will and freak out (I kind of did this the other day on the CaliforniaNewswire site when I said “hey, how come the audience dropped 70% for some of the articles …” then noticed the 9,000+ transients from the amp pages when using wp-optimize, and wen’t “oh … duh….” yeah “amp views not counted by the counter” —

Upshot – the amp view is being served as much as the mobile responsive views in the googleverse now on some of my sites, counter not incrementing. Of course, I use server side reporting (eg ‘webalizer’ etc) to know “actual” site audience views — but now the counter on all stories waaaaaaaaay down.

So – expect a bunch of newbie complaints about audience drop off once they enable AMP …. not understanding what is actually going on there.

If you can wrangle some working code on your side, for me to test – you’ll save yourself a billion support tickets for both themes as this continues to roll out !

Lucian
tagDiv Staff

Hi Chris,

Sorry for the late reply! Accustomed to your regular replies we have omitted your tread here, it happened inadvertently, we apologize for that.

I’m not sure if this is what you need but you may find theme views counter under this td_page_views class here: http://screencast.com/t/fYnyXdWjK and this class with its update_page_views method is called, which means it increments the view counters, just on the single post pages templates: http://screencast.com/t/YtOQihCe9pw

I’m not sure how the AMP version is interpreted but you may try to add a hook like this into your theme’s functions: http://screencast.com/t/wYzX3F8bhttp://pastebin.com/45icDfbD and also make sure you remove this condition: http://screencast.com/t/0EfP54gvJIKN ..do not forget about this second “{” here: http://screencast.com/t/tGvwIsek89

Give it a try and let us know how it goes!
Hope you’ll find this useful!

Thanks Chris, and again, please apologize the delay!

  • This reply was modified 10 years by Lucian.
Sophie
tagDiv Member

Hello, I am using the page builder template on the homepage.

ALL the fonts in the “Theme Fonts” have been changed to a serif font.

I have used a text block on the homepage – when I highlight and select Heading 4 it changes to a sans serif font.

I am trying to change the main body font – everything else is a serif font – just not the text in the text block nor the links in the footer.

I appreciate your continued help. Is there anywhere else to change these elements?

I could send you pictures or I could allow you access to the site – let me know which is best for you

Thank you

maruks
tagDiv Member

To add… Instead of the default page template of ‘Pagebuilder + latest articles + pagination’, can we do something like the below?

http://imgur.com/gkohIiG

Bogdan B.
tagDiv Staff

Hello,
This is the answer we provided via email:

You can use do_shortcode function to display and ad under posts title. To achieve that you need to edit each file corresponding with post template used: http://screencast.com/t/arZcXGgJn and paste the indicated code under get_title() function. The result will be like here: http://screencast.com/t/ilpOPPKqWI

To get the shortcode add an ad box into a blank page then switch in backend editor copy and paste this code: http://screencast.com/t/Kcqsjk9C7xbU inside do_shortcode function.
I used custom ad 1 in this example but you can use any of the custom ad-spot, just update the number from shortcode. Ex: for custom ad 4 the shortcode will be [td_block_ad_box spot_id="custom_ad_4"]

Also you can use the ad-shortcode to display ads in post contend. Just paste the shortcode in post editor where you want to display the ad: http://screencast.com/t/NKZwVCHBhttp://screencast.com/t/LrLini74nH2

Thanks!

simchris
tagDiv Member

From the changelog – not certain if up to date or not:

Newspaper theme
Here is a list of all the changes between v 6.6.5 and v 6.7

Modified files – 12 files
page-pagebuilder-title.php
page.php
style.css
includes\td_config.php
includes\plugins\js_composer.zip
includes\shortcodes\td_block_authors.php
includes\wp_booster\td_global.php
includes\wp_booster\td_wp_booster_functions.php
includes\wp_booster\wp-admin\panel\views\td_panel_categories.php
includes\wp_booster\wp-admin\panel\td_view_theme_plugins.php
js\tagdiv_theme.js
js\tagdiv_theme.min.js

Deleted files – 1 files
includes\plugins\revslider.zip

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

[ Version 6.7 ]
– new: Visual Composer plugin updated to the latest version 4.11
– new: Revolution Slider plugin updated to the latest version 5.2.2
– fix: Theme Panel fixed the structure for categories that have multiple branches(subcategories with their own subcategories)
– fix: Visual Composer 4.10 – Video Player resize problem for aspect ratio 4:3 and 2.35:1
– fix: removed some old Visual Composer detection code from td_wp_booster_functions.php, it was causing an error in certain cases
– fix: improved the Visual Composer detection code inside the default page template file, it was triggered when the shortcodes didn’t have unique names(ex. Woocommerce shortcodes)
– improvement: Authors box widget/block – added user roles option, now you can set it to display only the desired role(s) – https://codex.wordpress.org/Roles_and_Capabilities
– other: to keep the theme size under 8MB we removed the Revolution Slider install from the Newspaper->Plugins section. You have to install it manually – https://forum.tagdiv.com/how-to-install-revolution-slider-v5/
– other: removed unused code from “page-pagebuilder-title.php” template file

[ Version 6.6.5 ]
– fix: WooCommerce 2.5 compatibility + various styling issues
– improvement: Visual Composer plugin updated to the latest version
– improvement: Revolution slider updated to the latest version
– improvement: theme panel status now shows the loaded demo information
– improvement: footer logo title and alt attribute is now configurable from the theme panel
– improvement: faster servers that serve the files for the one click demos

==========
“no way to know ….” ? seems like some info was included in the download, at least my copy. ?

Alex
tagDiv Member

Hi, Newspaper 6.7 includes:
– new: Visual Composer plugin updated to the latest version 4.11
– new: Revolution Slider plugin updated to the latest version 5.2.2
– fix: Theme Panel fixed the structure for categories that have multiple branches(subcategories with their own subcategories)
– fix: Visual Composer 4.10 – Video Player resize problem for aspect ratio 4:3 and 2.35:1
– fix: removed some old Visual Composer detection code from td_wp_booster_functions.php, it was causing an error in certain cases
– fix: improved the Visual Composer detection code inside the default page template file, it was triggered when the shortcodes didn’t have unique names(ex. Woocommerce shortcodes)
– improvement: Authors box widget/block – added user roles option, now you can set it to display only the desired role(s) – https://codex.wordpress.org/Roles_and_Capabilities
– other: to keep the theme size under 8MB we removed the Revolution Slider install from the Newspaper->Plugins section. You have to install it manually – https://forum.tagdiv.com/how-to-install-revolution-slider-v5/
– other: removed unused code from “page-pagebuilder-title.php” template file

Andrei L.
tagDiv Member

Hi

To exclude a specific category from a block you have to use the category id not category name, here is an example: http://screencast.com/t/zPqCw3Sx To get the category id follow this link: http://screencast.com/t/hjxlo3EctF3r
Wen you’re using Visual Composer page-builder the sidebar set in page options will be displayed only on latest article part when page-builder + latest it’s used as a page template: http://screencast.com/t/btNJGCesn
For the part built with Visual Composer you can use a widgetized sidebar block: http://screencast.com/t/xF3RgsR4DASg

For more details about homepage setup and Visual Composer usage please check these links: https://forum.tagdiv.com/newsmag-how-to-use-visual-composer/https://forum.tagdiv.com/newsmag-homepage-how-to-build-and-set-it/

Thanks!

Pravin
tagDiv Member

Sorry for the confusion

now pls can you check this the page is now created with the visual composer and the set the template as ‘Pagebuilder + Page title’ and yes i do have checked the allow comments for the page. as you mentioned in this

boundary2
Participant
#0

Hi all,

I need to change the font (specifically the text transformation) in my category template. Right now I’m using Category Style 1, and my category pages look like this — http://dev.boundary2.org/category/b2o-an-online-journal/

My problem is I need the header of the page (the part that says “B2O: AN ONLINE JOURNAL” in bold caps) to not be capitalized. I want it to transform it to lowercase to be consistent with the rest of my site, but I can’t seem to do this through the theme fonts section in the theme panel. Any advice? Is there a way to do this without going in and messing with the API?

Thanks!

3dinformatica
Participant
#0

Hi all!
is there a way (hook, trick, whatever…in wp or in the template) to routing a request to load in each view or template (mainpage, categories, etc.) firstly posts with featured image related and secondly posts with the default “noimage”?
In my instance i’ve imported quiet 30k posts from an xml archive of cultural heritage but a lot of them don’t have a featured image loaded yet.

http://www.catalogobresciamusei.it

Thank you all. Great work guys!

simchris
tagDiv Member

would something like this work ?

do_action( 'amp_post_template_head', 'process_post_view_counter_key' );

or

do_action( 'amp_post_template_head', 'process_update_page_views' );

something like that ?

Bogdan B.
tagDiv Staff

Hello,

You have to make a copy of the template file rename it (you can add a letter or number after the title) and then rename the title inside the file (the commented one): http://screencast.com/t/fQ4ZSiWr4
If you did this correctly, a new page template with the new name should appear: http://screencast.com/t/0alFFaTl8n
Now you can modify it at will.

Hope this helps
Thanks

Viewing 25 results - 16,451 through 16,475 (of 18,570 total)