Search Results for 'child theme'

    No search results were found in Documentation!

Results from the Forum
Andrei L.
tagDiv Member

Hi

Please make sure that you installed the child theme according with our documentation: https://forum.tagdiv.com/newsmag-child-theme-support/ clear all caches and test again.
Regarding the plugins installations only Visual Composer it’s a required plugin, others are optional. If you still can’t manage to install them via WordPress try the ftp method. For more details about this check this topic: https://forum.tagdiv.com/topic/just-installed-last-newsmag-version-but-cant-update-visual-composer/ I offered there a solution for Visual Composer but the steps are the same for each plugin included in theme’s path.

Thanks!

Bogdan B.
tagDiv Staff

Hi,
Normally we do not recommend using plugins at all for the child theme. We have our own guide to create the child theme as it takes only a few steps to create it: https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thank you!

francescokma
Participant
#0

I’ve istalled the child theme for newsmag but seems that the parent theme css are not loaded.
http://blog.noisport.it/wp-secret-content/uploads/2016/04/errore_child_theme.jpg
can you help me?

Additionally I can’t install Required Plugins from the panel. I have to install them manually.
Wordpress say to me that the plugin have a not valid header

Blueann
tagDiv Member

Thank Bodgan for your answer, but i activeted the child theme before the last theme update. In meantime, i written at the author of plugin that i use for to create the child theme. He answer me that Visual composer is loading after the parent stylesheet. He has added a temporary workaround and it is working for now, and he will try to put a permanent fix in the functions file. For the moment it works perfectly. I thinked that this information is useful also for you, because is a plugin rather used

Bogdan B.
tagDiv Staff

Hi,
The main problem that is causing trouble with child theme sis they have to be updated too once in a while. If you updated the theme and not your child theme, then this type of errors can happen as the code in the main theme gets updated. Please remove your child theme and create a new one using the basic one we provide in the theme package here: http://screencast.com/t/uYkcPnaq6uvO
Recreate your modifications as well with your new child theme and it should work as expected. Also please mind your modifications as incorrect code also creates errors.
A child theme is not update proof. If ta certain file gets replaced with an update, and you still use the old file in your child theme it will cause elements to ‘break’.
Thank you!

Catalin
tagDiv Staff

Hello masc,

I suppose that you are referring to the background of the grid thumb. To do that you need a bit of CSS code. Please try the code below and place it in Theme panel->Custom CSS area.

The code is ->

.td-grid-style-1 .td-module-thumb a:last-child:before{
background:none;
}

The result you should see here -> http://screencast.com/t/Ye8uF7265P

If is not what you mean, please provide more details in this regard, so I will be able to provide a more accurate code.

Thank yu for the message!

Blueann
Participant
#0

Hello. I have a problem with the static home page in the child theme, but don’t find a solution. In the Child Theme all pages and styles work correctly, but not the home page. In the home page (static page from Word Press, with Visual Composer) don’t appear the sidebar. In the Child Theme copy there are all files required, in the admin panel all sections are configurated with the same options of the parent theme, but in the home page, only, the sidebar don’t appear and do not work it the proportions 2/3 and 1/3 indicated in visual composer. After two days of trying I decided, for the moment, to renounce from using the theme child, though, having made several changes, it would be important to use it. Instead in the theme Parents all works well, also the home page. Do you have some idea? Maybe I missed something … bye, thanks

GreatTaste
tagDiv Member

Would this solution that I found on you site work? I got this from – https://forum.tagdiv.com/custom-post-type-support/

How to create a custom single template for your post type

pick one of your favorite single templates [see image]
copy it in the root of your child theme folder
rename it to single-your_post_type.php (replace your_post_type with the wordpress id of your post type. In our sample plugin the id is td_book so the file should be called single-td_book.php)

Catalin
tagDiv Staff

Hello modernmavens,

I suppose that you want to remove the gradient for your Big Grid Slider. Please try the code below to do that.

The code is ->

.td-big-grid-slide .td-grid-style-1 .td-module-thumb a:last-child:before{
opacity:0;
}

The result -> http://screencast.com/t/OEjJTQfJN

For your second request, please try the code below and place it in Theme panel->Custom CSS area.

The code is ->

.td-big-grid-slide .td-icon-left, .td-big-grid-slide .td-icon-right{
opacity:0.7!important;
}

The result you should see here -> http://screencast.com/t/wjIIJPqkrv

Hope this helps!

If is not what you mean, please provide more details about your desired changes so I will be able to provide a more accurate response.

Thanks.

Catalin
tagDiv Staff

Hello kapunas,

If you want to hide the Next/Prev button for desktop and show them for the mobile mode you have to use a bit of CSS code. Please try the code below and place it in Theme panel->Custom CSS area.

The code is ->

@media (min-width:768px){
.td-next-prev-wrap {
display:none;
}
}

If you want to reduce the dark gradient for Big Sliders, you have to use a bit of CSS code. Try the code below.

The code is ->

.td-module-thumb a:last-child:before {
background: linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,.4) 100%)!important;
}

For your final request, please provide more details about what you want to change because I do not understand better. Also, please provide your website URL so I can further inspect the place.

Thanks.

Oasontu
Participant
#0

Relatively specific, but hopefully minor request to help me get started working on a child theme. I’m modifying module 9 in a Newspaper 6 child theme and want to show a custom field (“source”). This field is a simple text string with the name of an organization which has already been attached to many existing posts.

Module 9 has this piece of code to show post author and date:


<div class="td-module-meta-info">
<?php echo $this->get_author();?>
<?php echo $this->get_date();?>
</div>

Instead of the post author, I’d like to insert the custom field for the post. Seems like it should be a simple modification, but my PHP is rudimentary at best.

Many thanks for the support.

farhananwar
Participant
#0

HI there once again,

i need to customize the block # 14 style. how can i do it in child theme. or in other words i want to rewrite the whole block# 14 with some css, php and javascript(bootstrap animation) customization.that it look and load the posts like the big grid Style #8 and want to add some sort of a like button and ratings.. image is attached for your reference

could you please help me..

Something like this

computerpalm
Participant
#0

Hi developers,

Can you please add a practical example of how to use the Theme API to add the post-editor-side featured video Metabox to a CPT.

I know that I must edit the WPAlchemy_MetaBox class for td_post_video to include my CPT, but how can I use the Theme API from a Child Theme to do this?

Since I cannot override files in the includes directory, any direction here would be much appreciated.

Bogdan B.
tagDiv Staff

Hi,

css usually should be inserted in the theme panel. If you have the child theme active, then it should also work from there. Please make sure you have the latest version of the child theme though (the one that comes with the theme package)

Thanks.

iip
tagDiv Member

Thanks Bogdan,

Also, we are required to have 508 compliance which means images must have alt and title text. While updating this, could you please ensure each < img > tag in the smart list templates have alt and title included? I’m fixing this through the child theme, but shouldn’t be hard to implement when making the above change.

  • This reply was modified 10 years by iip.
Andrei L.
tagDiv Member

Hi

I’ve checked your site and found some js errors in browser’s console: http://screencast.com/t/vVMskwa2aeI2 Also I’ve noticed that you’re using the child theme. Make sure that the changes made in child theme don’t affect main theme functionality, also try to deactivate all plugins except Visual Composer, clear all caches and test again.

Let me know how it goes.
Thanks!

Bogdan B.
tagDiv Staff

Hi,
The issues you encounter are because of the child theme. The child theme is not update proof especially in a big update such as this. ALL the code was changed from version 4 to version 6. The child theme needs to be updated as well. All the customization done in the child theme or the main theme for that matter will no longer work anymore as newspaper 6 is almost like a different theme from newspaper 4. Please remove your child theme and copy the one that comes with the newspaper 6 package here: http://screencast.com/t/dzXyHwt9lQJ
If you need help on how to create the child theme, please follow this guide: https://forum.tagdiv.com/the-child-theme-support-tutorial/
Let us know how it goes.
Thank you!

simchris
tagDiv Member

Welll…..

a) if you use the speed booster framework, you would put the code into the Speed Booster plugin settings per the docs for that and the example from Lucien; *and* likely any custom css into your style.css and not in theme panel; and ideally NOT use child theme, to mimize any flash of unstyled text

b) if you’re doing custom hacking of your site, you would put any functions for de/enqueue into the functions.php where all such WordPress “actions” go; then you’d manually put your style.css link in footer. The WordPress codex has good tutorial on how “enqueuing” (adding to queue) works in WP.

c) You would then use the critical CSS generator found in my thread, to put the above the fold CSS “inline” in the header.php file. This loads only the needed CSS for above the fold to load with page — no render blocking of CSS — and then the rest loads with remainder of page. — Trial and error on this stuff.

These efforts are toward solving the pesky lower score on Google PageSpeed Insights for mobile “above the fold render blocking…”

This is a bit “advanced” stuff most folks won’t tackle. But if you’ve got everything ELSE as optimized as possible, this is kind of the LAST thing to do.

And frankly, if you’re using the AMP system for mobile, for a lot of folks, this will be a non issue as Google products will be loading the AMP version vs the responsive mobile version anyway.

So, one could argue if you have a desktop score of 92 or higher, and you’re running “AMP” on your site for posts, you likely don’t need to stress as much as before on the mobile score on Google’s direct testing speed tool. 🙂

( rant over . . . ) 🙂

  • This reply was modified 10 years by simchris.
agoramt
tagDiv Member

Hi, thanks!
This is the first time that I use this theme, I have no idea for how long they are using newspaper4 as their theme, but I appreciate any help to migrate to newspaper6.

They have a blog running on http://www.agoramt.com.br using newspaper4 with a childtheme.
I created a subdomain http://beta.agoramt.com.br and I clonned the blog there, and I followed the upgrade proccess, but this is what I’m getting:
http://pasteboard.co/2u0yG1Sb.png
I tried to fix, but look the frontend:
http://pasteboard.co/2u0JXppR.png

  • This reply was modified 10 years by agoramt.
Bogdan B.
tagDiv Staff

Hello,

If you plan to modify the theme files in order to add content to the shrotcodes tab, this will not be update proof at all as any change in the theme files will result in the loss of the customization (even if a child theme is used) so the best option would be through a plugin. You can create your own plugin and tie it to the editor by following a few online resources:
http://wordpress.stackexchange.com/questions/72394/how-to-add-a-shortcode-button-to-the-tinymce-editor
http://code.tutsplus.com/tutorials/guide-to-creating-your-own-wordpress-editor-buttons–wp-30182

Or maybe you can find a plugin that already has the options you seek: https://wordpress.org/plugins/better-shortcodes/screenshots/

Hope this helps.
Thank you!

Syams
tagDiv Member

anyway thanks. I have move newsmag > wp_booster > comment.php to themechild directory before.
it is my fault

Bogdan B.
tagDiv Staff

Hello,

Please try one more thing. If you have a child theme installed, please just install visual composer from the main theme. If this is not the case then please try to install the plugin via ftp. You need to unzip the indicated file here: http://screencast.com/t/RQSxW5EBpar then upload the folder js_composer in your-wp-install/wp-content/plugins on your server: http://screencast.com/t/hLQMV3wPi
If you still have trouble with it, please send us an email at contact@tagdiv.com and provide wp-admin and ftp access so we can take a look.

Hope this help.
Thanks!

Airane
Participant
#0

Hi,
I want to place an custom ad on posts between social sharing and related post on my site (http://soutaoboa.com/as-vezes-um-carinho-cai-tao-bem/). But this one ad should only be visible to mobile visitors.

So:
I have a custom ad 1 and the code is in place (not adsense);
Did a call for the shortcode:
<?php echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_1"]‘)?> on loop-single file;
On the style.css I have:

@media
only screen and (max-width: 767px) {
.td-a-rec-id-custom_ad_1{
position:center!important;
};
The problem is that the ad is there but visible to everyone.

What I’m doing wrong?
Thanks
P.S. I have a child theme.

newtag
tagDiv Member

HI,

1.
I forgot to mention – that im – NOT – using the VC Plugin!!!

2. Firebug says, there is a error:

ReferenceError: jQuery is not defined
var html_jquery_obj = jQuery('html');

3. Part of my sourcecode where you can see the scripts in the footer area just above the script with the error:

<script type='text/javascript' defer="defer" src='http://justatestsiteforyouname.com/wp-includes/js/admin-bar.min.js'></script>
<script type='text/javascript' defer="defer" src='https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js'></script>
<script type='text/javascript' defer="defer" src='https://cdn.jsdelivr.net/jquery.migrate/1.2.1/jquery-migrate.min.js'></script>
<script type='text/javascript' defer="defer" src='http:/justatestsiteforyouname.com/wp-content/themes/justatest/js/tagdiv_theme.js'></script>

<!-- JS generated by theme -->

<script>

		(function(){
			var html_jquery_obj = jQuery('html');

			if (html_jquery_obj.length && (html_jquery_obj.is('.ie8') || html_jquery_obj.is('.ie9'))) {

				var path = 'http://justatestsiteforyouname.com/wp-content/themes/justatest-child/style.css';

				jQuery.get(path, function(data) {

					var str_split_separator = '#td_css_split_separator';
					var arr_splits = data.split(str_split_separator);
					var arr_length = arr_splits.length;

					if (arr_length > 1) {

						var dir_path = 'http://justatestsiteforyouname.com/wp-content/themes/justatest';
						var splited_css = '';

						for (var i = 0; i < arr_length; i++) {
							if (i > 0) {
								arr_splits[i] = str_split_separator + ' ' + arr_splits[i];
							}
							//jQuery('head').append('<style>' + arr_splits[i] + '</style>');

							var formated_str = arr_splits[i].replace(/\surl\(\'(?!data\:)/gi, function regex_function(str) {
								return ' url(\'' + dir_path + '/' + str.replace(/url\(\'/gi, '').replace(/^\s+|\s+$/gm,'');
							});

							splited_css += "<style>" + formated_str + "</style>";
						}

						var td_theme_css = jQuery('link#td-theme-css');

						if (td_theme_css.length) {
							td_theme_css.after(splited_css);
						}
					}
				});
			}
		})();

	
	
</script>

4. When i exclude the defer loading of the jquery.min.js file – the error gone!

5. I think this can help http://stackoverflow.com/a/33205519 – please also look at the other answers.
But i dont know how to fix it.

6. If you can help me out, it would be awesome!

Thank you so much

  • This reply was modified 10 years by newtag.
  • This reply was modified 10 years by newtag.
  • This reply was modified 10 years by newtag.
expresselblag
Participant
#0

After updating to version 6.7 the main theme – the newspaper is updated , but the theme is not the child . To change places only those files that are not in it . After the update we have new options available , such as the new big grid and others. How to upload them in the theme child ?

Viewing 25 results - 11,126 through 11,150 (of 12,866 total)