- ApiPractical example – How to add a new Block and Module
- Apitd_api_top_bar_template::delete
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- Apitd_api_single_template::delete
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- Apitd_api_footer_template::delete
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- Apitd_api_smart_list::delete
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
- Apitd_api_thumb::delete
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
Hi
You can use media queries to hide an element on mobile devices:
@media(max-width: 768px){
.elemnt-css-classes{
display: none;
}
}
Here is an example referring at more article box: https://forum.tagdiv.com/topic/view-on-mobile-mode-the-more-stories-covered-all-content/
Thanks!
Hi, i have a custom PHP codes running in 3 static pages. I have created the pages using the wordpress back-office, and writing the title and using the default template.
For example, the ID of one of them is 100, with slug “contacto”.
I folowed the Template hierarchy and re-named a copy of “/Newspaper/page.php” file in my theme child.
Single Page #
custom template file – The page template assigned to the page. See get_page_templates(). page-{slug}.php – If the page slug is recent-news, WordPress will look to use page-recent-news.php page-{id}.php – If the page ID is 6, WordPress will look to use page-6.php. page.php singular.php index.php
In my case i chosse using this name: page-archive.php (but i tested with page-100.php too)
I am running this in mi localhost and in other hosting for testing purposes, and are working great.
Working in a new server:
The strange thing is that now, i have imported 160.000 news , and for an unknown reason this hierarchy don’t work any more. Now is working in localhost.. “the same files”!! but in the real production server this is not working.
Then i created all these files with empty content. Only with the line <?php echo ‘page-slug.php’;?>.
And they never load!.
Why is this happening?.
Hi,
I’ve already using Google DFP to manage all the advertising spaces on my web site (please see http://43b.60a.myftpupload.com/). Here, all the ads banners are currently served by Google DFP and I’m wondering if the site skin, (i.e. the background image) could be served by Google DFP as well rather manage it through the Newsmag theme panel. How can it be achieved?
Thanks in advance for any appreciated help.
Giuseppe
Hello,
Thank you so much for this wonderful theme.
I have situation with my news website, need your help.
My current website is having a mix of english and local language news now. English news are stored in a category named “english” and local news categories are in root level.
Normal site news sample URL : http://www.xyz.com/sports/sports-news
English news sample URL : http://www.xyz.com/english/world/news-one
Now i want to separate my site to english news & local language news for better experience for my viewers.
i have created a new page and made a separate page for english & local language news. The main site is in english now and new page created for local language.
Eg. http://www.xyz.com (default site showing English content only from category English )
http://www.xyz.com/local-language-page ( showing the news only in local language )
The issue i face now is about main nav ( header menu ), Am not finding options to fix separate main nav ( header menu ) for english version and local language respectively. Can you help me understanding the steps required to do this ?
Thanks
Jacob
Hi,
I’m facing problems with pagination in category pages on Newspaper theme. All pages looks like the 1st.
Look an example: http://www.irmaos.com/wordpress18/category/podcast/podirmaos/ (click on folowing pages: 2, 3, 4…)
I already tried to disable all plugins to see if was that the problem, but unsuccessfully. When I change to another native theme, the problem is gone.
Can you guys help me? Thank you.
Review Post not showing Rating on Google Search
It was working fine till a few days back. Like on Feb 12th it was working fine.
Suddenly it stopped working.
For Example, See this post: https://tamilglitz.in/sethupathi-review/
It’s a review post but it doesn’t show up as a review on Google.
Can you Please help me Out?
Hi,
i want to implement the banner-format Billboard (780 x 250 Pixel) directly under the navigation.
See http://www.extra-funds.de as a example (the ishares advert right under the navigation).
How can i do that? The advert should be visible on all pages and post sites.
Thanks for your help
Markus
Hi
The best way to add a footer link is by adding it directly in code like here: http://screencast.com/t/JCLtf6ME7 Also you will need this css in theme panel >custom code > custom css:
.footer-link{
display: inline-block;
}
The result will be like here: http://screencast.com/t/AkTKcv5o This is just a basic example. You can apply any style on the link using different css properties.
Thanks!
Hello there!
We are trying to have infinite scroll on our post paginations.
For example
http://tootsiepost.staging.wpengine.com/t
http://tootsiepost.staging.wpengine.com/t/1
http://tootsiepost.staging.wpengine.com/t/2
etc
Here are a couple of plugins that are doing it:
https://wordpress.org/plugins/infinite-scroll-and-load-more-ajax-pagination/
https://wordpress.org/plugins/malinky-ajax-pagination/
My question is what values do we put for the selectors?
http://screencast.com/t/33bLdRvYFL
Thank you
Hi.
I have checked your webiste and saw that both examples provided have titles and breadcrumbs: http://screencast.com/t/bnQuwFWqhFy The fact that is now displaying both the titles is strange as the default template does not display the titles. Only page builder + page title has the title visible: http://screencast.com/t/hkQXjKEyd3b and your pages do not have the same template selected. Maybe you have some custom modifications in place.
I have also checked the menu but it seems to display fine. I found no problems with it
Thank you!
Hi
The sidebar set for categories in theme panel applies only only that specific category page. For example if I set a custom sidebar for Apple category here: http://screencast.com/t/UZ7LIZQF6Ls it will be displayed on Apple category page here: http://screencast.com/t/ic77qeZuTbIN and also on every post from Apple category which does not have another sidebar set in post editor. By selecting here Default Sidebar: http://screencast.com/t/WOc692xRVo the theme will display the sidebar set for the post’s category, not a sidebar named “Default Sidebar”
The theme don’t have a block which display the entire post content in Visual Composer. If you want to display all post content on a page then use pagebuilder + latest and set module 15 for layout: http://screencast.com/t/DShLQP5Dir
Hope this help.
Thanks!
for example i want to hide “more article box” on mobile. i also want to hide td_block_13 and etc. how can i do thats
Hi
Newsmag theme does not have implemented the ads system for smart list yet that’s why the indicated ad-spots are missing. We plan to implement the ads for smart lists in future theme updates but meanwhile if you want to use them a solution would be to use do_shortcode function in the file corresponding with the smart-list template used: http://screencast.com/t/ys6OJZXx
$buffy .= do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');
In this example I’ve used custom ad 1. If you want to use a different custom ad spot just update the number from shortcode. For example if you use custom ad 4 the shortcode will look like this: custom_ad_4
Let me know how it goes.
Thanks!
My mobile view is also very slow. And I don’t know why. Thats why I’ve been trying to make it as simple as possible with less modules. I looked up AMP and a lot of people are complaining about it. It also seems like something thats not so easy to setup. Im not really IT/HTML savvy
Hi guys,
Amazing theme! A few things I need help with.
1. I needed to reduce the featured image height on both post template 6 and 7 so I entered the code:
.td-post-template-6 .td-post-header {
height: 500px !important;
}
.td-post-template-7 .td-post-header {
height: 500px !important;
}
Which worked for desktop but leaves a huge gap between the subtitle and text. Example: http://www.discovercheltenham.com/pubs/harry-cook-free-house/
2. Is it possible to change the text where it says ‘Via’ for the Via Name to ‘Photo Credit’. Assume I have to change something behind the scenes. Where do I find it?
3. Is it possible to show the Time, and Day (Mon, Tues, Wed) on a post? And on the grid?
4. Can I remove the date on the Category post listings. E.g. page: http://www.discovercheltenham.com/category/pubs/ BUT not remove it from all other pages / grids?
Thanks
Charlie
Thanks a lot Bogdan,
What I was exactly looking was if a page has a block with a featured image of a post & if that featured image is clicked as in http://www.screencast.com/t/lNJUrPI67e it should open it as a lightbox shown in http://www.screencast.com/t/JoWkI3y0
Thanks again
Rana
If you want the best optimized view for mobile for users on Chrome/Android, you might also check out the new “AMP” protocol from Google; and get the free plugin made by Automattic (people who make WP) in the WordPress.org plugin repository.
Hello,
I am wanting to have a specific sidebar displayed for posts containing specific categories.
For example, on any posts with the category “blog” I’d like to show a specific sidebar.
For any posts with the category “Videos” I’d like to display a different, specific sidebar.
Is there a way to achieve this so that i don’t have to go back through thousands of posts and manually set the sidebar from the admin area?
i just want to write some code in php.
example
<?php
$user_id = get_current_user_id();
if ( is_user_logged_in() ) {
if ( $user_id == 2 || $user_id == 4) {
<h3>display content for user ID=2,4</h3>
} elseif ( $user_id == 1003 || $user_id == 1005 || $user_id == 1006 ) {
display user_id = 3,5,6 content
} else {
display other user_id content
}
} else {
display content for guests
}
?>
How can i do that.
i dont want to have a membership plugin. to heavy for little code.
thanks
Sorry, but its ridicilous that this feature is not working for Custom Post Types! You should really consider making your theme much more customizable, for example stuff like “PAGE WIDTH” are standard customizes and is not even possible with your theme. This will make me think to buy this theme again to be honest.
Thanks anyways.
Hello,
If the menu item is not clickable on your desktop version as well, it means it is not a category link. If you have the default demo menu we created, it is made with custom links and the menu item itself is not clickable as it links to ‘#’. Please recreate your menu using category menu items not custom links. Then the menu item will be clickable.
example: http://screencast.com/t/yCesMB4q
Thank you!
Hello tagDiv Team here am giving a suggestion (or) asking a requirement. In my point of view it adds one more good quality to Newspaper Theme. We can sort posts by date if add an option that to sort by highest to lowest or lowest to highest it makes feel more and more better to your customers. I kept an image link below Thanks in Advance. I hope tagDiv takes my suggestion with Love
https://dl.dropboxusercontent.com/u/55681588/sort.jpg
With Respect & Love
RadhaKrishna
Hello,
There are 2 ways of adding ads inside a smartlist. One is the php method where you can use a do_shortcode function and add it inside one of these files: http://screencast.com/t/RAU3ZEudH
Or you can use the visual composer shortcode from an ad box and place the ad directly inside the smartlist content for example this shortcode will grab the ad from the custom ad 1 spot:
[td_block_ad_box spot_id="custom_ad_1" spot_title="Advertisment"]
You just place it in text mode inside the content.
I hope this helps.
Thank you!
Buna
Pentru noi nu este o problema ca ai scris in limba romana dar avand in vedere ca acest forum este public si orice membru inregistrat poate vedea respunsurile noastre, consideram ca e mai folositor sa purtam conversatiile in engleza. Majoritatea clientilor nostrii nu inteleg limba romana deaceea preferam sa purtam converatiile in engleza. Motivul este simplu: raspunsurile noastre post fi folositoare si altor utilizatorei care vor sa faca modificari similare.
Revenind la intrebarile tale:
1,2: O sa am nevoie de site-ul tau pentru a putea sa-ti dau un cod potrivit. Valorile care trebuie modificate difera de la caz la caz si nu pot aprecia doar din imagine care sunt valorile necesare.
3. Tema afiseaza dor 5 subcategorii in mega-meniu dar numarul lor poate fi modificat editand td_config.php: http://screencast.com/t/j5E9nnid6p7
4. Cea mai simpla metoda de a schimba icoana e folosirea unui plugin pentru fonturi, de examplu Font Awesome e testat si merge bine cu tema. Aici este documentatio noastra cu privire la utilizarea plugin-ului: https://forum.tagdiv.com/newsmag-how-to-add-icons-in-menu/ Ca sa modifici icoana pentru vizualizari trebuie sa ediezi: td_module_single_base.php si sa inlocuiesti aceasta clasa: td-icon-views cu cea corespunzatoare pentru icoana aleasa, de examplu: fa fa-eye-slash Rezultatul va fi ca in aceasta imagine: http://screencast.com/t/ZjkBzlnofhqb
Multumesc.
Hello VoZz,
Below I gave you an example to header style 9 as you can get a transparent one. Please try the code and add it in Theme panel->Custom CSS area.
.td-header-style-9 .td-header-top-menu-full {
background-color:transparent;
}
.td-banner-wrap-full, .td-header-menu-wrap-full {
background-color: transparent;
}
The result you should see here -> http://screencast.com/t/OdhjP6CU
If is not what you mean, please provide more details about your desired changes and also please provide your website URL so I can inspect it closer and give you a more accurate response.
Hope this helps!
Thank you for the message!