Search Results for 'demo'

Results from the Forum
pedroxi
tagDiv Member

HI Marius
I have placed the code to optimize the images
I have placed it at the end of “function.php”
I want to know if it’s right where I put it
Here is what I did

<?php
/*
Our portfolio: http://themeforest.net/user/tagDiv/portfolio
Thanks for using our theme!
tagDiv – 2017
*/

/**
* Load the speed booster framework + theme specific files
*/

// load the deploy mode
require_once(‘td_deploy_mode.php’);

// load the config
require_once(‘includes/td_config.php’);
add_action(‘td_global_after’, array(‘td_config’, ‘on_td_global_after_config’), 9); //we run on 9 priority to allow plugins to updage_key our apis while using the default priority of 10

// load the wp booster
require_once(‘includes/wp_booster/td_wp_booster_functions.php’);

require_once(‘includes/td_css_generator.php’);
require_once(‘includes/shortcodes/td_misc_shortcodes.php’);
require_once(‘includes/widgets/td_page_builder_widgets.php’); // widgets

/*
* mobile theme css generator
* in wp-admin the main theme is loaded and the mobile theme functions are not included
* required in td_panel_data_source
* @todo – look for a more elegant solution(ex. generate the css on request)
*/
require_once(‘mobile/includes/td_css_generator_mob.php’);

/* —————————————————————————-
* Woo Commerce
*/

// breadcrumb
add_filter(‘woocommerce_breadcrumb_defaults’, ‘td_woocommerce_breadcrumbs’);
function td_woocommerce_breadcrumbs() {
return array(
‘delimiter’ => ‘ <i class=”td-icon-right td-bread-sep”></i> ‘,
‘wrap_before’ => ‘<div class=”entry-crumbs” itemprop=”breadcrumb”>’,
‘wrap_after’ => ‘</div>’,
‘before’ => ”,
‘after’ => ”,
‘home’ => _x(‘Home’, ‘breadcrumb’, ‘woocommerce’),
);
}

// use own pagination
if (!function_exists(‘woocommerce_pagination’)) {
// pagination
function woocommerce_pagination() {
echo td_page_generator::get_pagination();
}
}

// Override theme default specification for product 3 per row

// Number of product per page 8
add_filter(‘loop_shop_per_page’, create_function(‘$cols’, ‘return 4;’));

if (!function_exists(‘woocommerce_output_related_products’)) {
// Number of related products
function woocommerce_output_related_products() {
woocommerce_related_products(array(
‘posts_per_page’ => 4,
‘columns’ => 4,
‘orderby’ => ‘rand’,
)); // Display 4 products in rows of 1
}
}

/* —————————————————————————-
* bbPress
*/
// change avatar size to 40px
function td_bbp_change_avatar_size($author_avatar, $topic_id, $size) {
$author_avatar = ”;
if ($size == 14) {
$size = 40;
}
$topic_id = bbp_get_topic_id( $topic_id );
if ( !empty( $topic_id ) ) {
if ( !bbp_is_topic_anonymous( $topic_id ) ) {
$author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size );
} else {
$author_avatar = get_avatar( get_post_meta( $topic_id, ‘_bbp_anonymous_email’, true ), $size );
}
}
return $author_avatar;
}
add_filter(‘bbp_get_topic_author_avatar’, ‘td_bbp_change_avatar_size’, 20, 3);
add_filter(‘bbp_get_reply_author_avatar’, ‘td_bbp_change_avatar_size’, 20, 3);
add_filter(‘bbp_get_current_user_avatar’, ‘td_bbp_change_avatar_size’, 20, 3);

//add_action(‘shutdown’, ‘test_td’);

function test_td () {
if (!is_admin()){
td_api_base::_debug_get_used_on_page_components();
}

}

/**
* tdStyleCustomizer.js is required
*/
if (TD_DEBUG_LIVE_THEME_STYLE) {
add_action(‘wp_footer’, ‘td_theme_style_footer’);
// new live theme demos
function td_theme_style_footer() {
?>
<div id=”td-theme-settings” class=”td-live-theme-demos td-theme-settings-small”>
<div class=”td-skin-body”>
<div class=”td-skin-wrap”>
<div class=”td-skin-container td-skin-buy”>BUY NEWSPAPER NOW!</div>
<div class=”td-skin-container td-skin-header”>GET AN AWESOME START!</div>
<div class=”td-skin-container td-skin-desc”>With easy <span>ONE CLICK INSTALL</span> and fully customizable options, our demos are the best start you’ll ever get!!</div>
<div class=”td-skin-container td-skin-content”>
<div class=”td-demos-list”>
<?php
$td_demo_names = array();

foreach (td_global::$demo_list as $demo_id => $stack_params) {
$td_demo_names[$stack_params[‘text’]] = $demo_id;
?>
<div class=”td-set-theme-style”>” class=”td-set-theme-style-link td-popup td-popup-<?php echo $td_demo_names[$stack_params[‘text’]] ?>” data-img-url=”http://demo.tagdiv.com/demos_popup/newspaper/large/&lt;?php echo $demo_id; ?>.jpg”></div>
<?php } ?>
<div class=”td-set-theme-style-empty”></div>
<div class=”clearfix”></div>
</div>
</div>
<div class=”td-skin-scroll”><i class=”td-icon-read-down”></i></div>
</div>
</div>
<div class=”clearfix”></div>
<div class=”td-set-hide-show”></div>
<div class=”td-screen-demo” data-width-preview=”380″></div>
<div class=”td-screen-demo-extend”></div>
</div>
<?php
}

}
//print_r(td_global::$all_theme_panels_list);add_filter( ‘jpeg_quality’, create_function(”, ‘return 50;’ ) );

goodnews
Participant
#0

I began building a Newspaper Theme site from one of the demo templates.

I want to change the Post Order and Categories in code like this:

[td_block_18 custom_title=”MUST READ” category_id=”” limit=”4″ ajax_pagination=”next_prev” sort=”random_posts”]

How do I replace the “random_posts” to sort by Date or Descending Order? And what do I put in category_id=”” to choose a category? Do I put the name of the Category or the slug?

websystemsweb
Participant
#0

Hi, I just istalled Newspaper v.8 with demo content.
This is a clean install – wp 4.7.5 – and I have no plugins active (only tagDiv’s “Composer” and “Social Counter”)
I can edit existing pages.
When I create a new blank page, I can’t add any element with the composer, and when I load the composer I have this js error in the console:
***********************************
js_files_for_wrapper.min.js?ver=__td_aurora_deploy_version__:213
Uncaught TypeError: Cannot read property ‘models’ of undefined
at Object.bindViewsModelsWrappers (js_files_for_wrapper.min.js?ver=__td_aurora_deploy_version__:213)
at Object.init (js_files_for_wrapper.min.js?ver=__td_aurora_deploy_version__:165)
at HTMLIFrameElement.loadIframe (js_files_for_wrapper.min.js?ver=__td_aurora_deploy_version__:252)
at HTMLIFrameElement.dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload,jquery-ui-core,jquery-ui-widg…:3)
at HTMLIFrameElement.r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload,jquery-ui-core,jquery-ui-widg…:3)
***********************************
I found a workaround (pasting in the body the code copyed from a working page, then deleting and readding elements) but I think this error has to be quickly fixed. Thank You! G.

Catalin
tagDiv Staff

Hello Sebastian Escobar,

Unfortunately, the Twitter will not take the featured image when the post will be shared on the Twitter, sorry! If you will check our demo, you will see the same behavior, like this -> https://www.screencast.com/t/5RM6M6ORehG

Thanks for the message!

Catalin
tagDiv Staff

Hello Pantho Bihosh,

Please keep in mind that you should not lose any data of your website by an update. This will happens due only if you have edited the demo content. Do you edit the content for this 11 posts? If it were created from 0 they were not lost now.

Thanks for your understanding!

Catalin
tagDiv Staff

Hello kessler213,

Please ensure that you have imported your slider in order to achieve the slider on your website, according to our documentation here -> https://forum.tagdiv.com/import-revolution-sliders-on-demos/

Thanks for your understanding!

simchris
tagDiv Member

Try
a) not using jetpack
b) test site with *no* ads running
c) remove all demo content
d) don’t use “number of likes” from FB/Twitter on your posts/pages or sidebar

(etc)

Everything you pile onto a page that goes to another site to grab stuff adds bloat.

Once you optimize a “lean” site, then start adding bells/whistles to the point it doesn’t die on speed. 🙂

(At least that’s what I do … )

(( I don’t work here… just a smarty pants who butts his nose into other people’s business… 🙂 )

websystemsweb
Participant
#0

In the demo, “GADGET” menu is a megamenu with 5 posts. I would like to have 5 pages but I cannot find the right place to change the code.
I found the render function in td_block_mega_menu class, but I don’t understand how to force my pages to come out.
I know that hard-coding these vaules (pages’ IDs) is not the best way, but it’s the only solution I found, because there are no hooks/filter.
Can you help me? Thanks, G.

obichijioke
Participant
#0

After Installing the Sound Radar demo on my site. I noticed a performance decrease of more than 60 seconds load time.
After debugging my site with firefox I found the problem an image file trying to load from this link
(http://192.168.0.208/wp_011_sound_radar/wp-content/uploads/2017/04/mobile-menu.jpg) was timing out. I have looked for it but have not found it. Please can Someone help me out.
Thanks

kessler213
Participant
#0

I have read and implemented the steps according to the documentation. I have activated the Vslider plugin and have an error message where the slider should be. What did I miss?

url: http://pawsmopolitanmagazine.com/

Seekingknowledge!
tagDiv Member

Here is the page. https://forum.tagdiv.com/visual-composer-tagdiv-composer-transition/

But you did not answer the most important question. I am operating from Washington DC and I realised that when I try to create a new page using TagDiv Composer, once I click on “add element”, I can see the elements, but I cannot move any to any page on the right. It shows a white page on the right but no element can be moved there. That’s why I had purchased Visual Composer because it was not working. So my question is, does it have to do with where I am operating from. I am also using a Google Chrome browser, does it have to do with the browser? I am also using a Window 10 laptop, does it have to do with the version of the Window I am using? The bottom line is even after watching your video, which is not detailed as it assumed that elements would be moved easily. But they are not moving. Maybe I should mention that once I open to create a new page, I see Back end editor and TagDiv composer, and once I choose TagDiv and proceed to add an element, it is just frozen from there. Your demonstration is gorgeous, but it’s simply not working for many of us.

Simion C.
tagDiv Staff

Hi,

Please check the theme system status and make modifications to the parameters mentioned in this guide, if needed
https://forum.tagdiv.com/system-status-parameters-guide/
Then check if everything works as intended.
You can make some page building elements to be full width, by stretching the row they are placed in. For example the Full big grids
https://demo.tagdiv.com/newspaper/full-big-grid-1/
Also you can make the header and footer full width in the theme panel. But to change the theme width overall is not recommended. The theme elements depend on the fixed theme container width and making modifications to it could cause broken layouts and other unexpected results.

Thanks

Simion C.
tagDiv Staff

Hi,

I am having trouble recreating the paragraph problem. Please enter the code provided below in Theme panel->Custom Css

.td-post-content p {
margin-bottom: 26px!important;
}

https://www.screencast.com/t/91go4ji2qi

That flashing issue happens because the demo style is applied after the initial loading of the default theme style. If you are using the speed booster plugin this can be more visible. Some solutions are provided in this topic
https://forum.tagdiv.com/topic/theme-rendering-to-default-first-a-second-until-resolving-to-theme-panel-colors/

Thanks

gvh
Participant
#0

Hi,

I was working on my website, and everything was great, but suddenly the css went missing from the website.

I compared the sources from Developer Tools > Sources from my website and from the demo website and here is the difference:

12

The website is smelaunch.com

I am using the Say What? theme and demo on Newspaper.

Also, when i clicked on the css on the first image, its empty, unlike this:

3

Once I copy this CSS into my website (via Developer Tools), the website is mostly fixed.

I have also deactivated all plugins, to no avail.

Simion C.
tagDiv Staff

Hi,

Each post template has it’s own predefined style for the design and the featured image. You can try post template style 7, it is similar to what you are describing
https://demo.tagdiv.com/newspaper/td-post-lenovo-details-new-computers-that-could-be-heading-our-way-in-2015/
You could even use some css code to customize the featured image size that is displayed.

Thanks

Bogdan B.
tagDiv Staff

Hello,
If you want to use a different photo on each category you should use the category style 5 and use a different background image on each category: https://demo.tagdiv.com/newsmag/category/template-style-5/
As for the category description, please provide an example on how to style it as it can be done using css.

Thank you!

Sergey Smirnov
tagDiv Member

Hi, Simon, and thank you for responce!
Yes, looking at forum i see – it’s a hot time now for TD team. 🙂

I’ve foung the scope that shows the Big Power of CPT & Custom taxonomy
It’s of course a Recipes:
https://demo.tagdiv.com/newspaper/category/tagdiv-lifestyle/tagdiv-recipes/

– Ingridients
– Coocking methods
– Diet
– …and so on

Arias100
Participant
#0

Hi,

I love the old fashioned demo theme! But I want to change the bg color of the whole demo theme to some other color(interior, exterior, interior of the containers, everything). How do I do that?

Thanks in advance,
Bogdan

Catalin
tagDiv Staff

Hello neevin2017,

You should import the demo without content, according to our documentation here -> https://forum.tagdiv.com/installing-demos/

Thanks for the message!

neevin2017
Participant
#0

Hello,

I have bought News paper 8 and installed it on to my domain but I haven’t added any content yet. So what I’m trying to do is add a demo theme and then start adding my content.

What I’d like to know is, once I start adding content, how do I delete the rest of the demo content, titles etc. Do I have to delete each demo content one by one?

Thanks
Neevin

Bogdan B.
tagDiv Staff

Hi,

Depending on the demo you have installed, the theme can change all the colors at once or just the exterior of the site.
The default functionality is the exterior of the site being changed by this option: https://www.screencast.com/t/7wDxR1Dse5
The interior cannot be changed from the theme panel but there are theme demos that change this functionality like the old fashioned demo which changes the interior of the containers as well: https://demo.tagdiv.com/newspaper_old_fashioned/

If you do not use this demo then yopu will be able to change the exterior using the theme panel option mentioned above and then use a custom css to change the ‘interior’ color like so:
.td-main-content-wrap, .post{
background-color:lightgrey!important;
}

Thank you!

Simion C.
tagDiv Staff

Hi,

1. The demo style overrides the main theme style, it is not standalone. That is what happens when a demo is installed. The demo comes with it’s own customization that applies over the theme. You could if you want to identify these overrides and make the modifications directly in the theme style, and remove theme from the demo style. It could prove to be a lot of work.

2. The child theme does not affect the way the website looks by default. A child theme sample is provided in the theme package in the code folder. But it all depends on the files you modify, that is the purpose of a child theme. Here you can find more information about the child theme and what files can be used in it
https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks

Catalin
tagDiv Staff

Hello donfink,

Please keep in mind that our theme is very user-friendly and has a lot of post templates which can be used to create your own post. You should just choose the template you want from our list. To see all of these, please check our demo preview, here -> https://www.screencast.com/t/V48uGfK64 -> https://demo.tagdiv.com/newspaper/wordpress-news-magazine-charts-the-most-fashionable-new-york-couples-in-2016/ Also, for more information about our post templates, please consult the documentation here -> https://forum.tagdiv.com/post-templates-2/ Also, before beginning to create your website with our theme, please notice that you should start reading all of our documentation and also, you can check our YouTube channel because there we have a lot of useful video tutorials which can help you -> https://www.youtube.com/user/tagdiv.

Thanks for your understanding!

Bogdan B.
tagDiv Staff

Hello,

If you want to hide the featured image on single posts you simply need to use post style 5 as it hides the featured image as you require: https://demo.tagdiv.com/newspaper/td-post-mcdonell-kanye-west-highlights-difficulties-for-celebrities/

Thank you!

allenwei812
Participant
#0

HI…
I used demo …but i can`t change categories title…and
once I post new article …the new article shows on every categories(include worldnes,latest,etc.) even I set the categories during editing
the article….
Please help me…..

http://ruixuan17888.com

Viewing 25 results - 11,601 through 11,625 (of 17,268 total)