Search Results for 'child theme'

Results from the Forum
paulberrow
Participant
#0

Hi!
https://forum.tagdiv.com/child-theme-documentation/ – here,
in this paragraph: 2. The following files can be overrided by the child theme: Template files

you mentioned file named loop-simple.php. In theme’s files i can find only loop-SINGLE.php. Is it the same file or not?

UPD Oh, it’s supposed to be the same according the 3rd paragraph, just can delete this post

alturic
tagDiv Member

Hey Radu,

So realistically speaking, with the way Newspaper is coded, it’s not fully compatible with child themes, correct? In other words, by default WordPress allows any and all parent theme files to be child themeable but without full support from the parent theme it obviously doesn’t work.

Just to make sure I understand correctly, if I wanted to edit a function in /newspaper/wp-admin/content-metaboxes/td_set_homepage_loop.php WordPress does have the ability to do /newspaper-child/wp-admin/content-metaboxes/td_set_homepage_loop.php but without functions being called conditionally there’s no way to do that.

In other words, is there absolutely anything >I< can do that will allow tweaks to those “core” files and not have to worry about updating the theme wiping out my changes?

Radu A
tagDiv Member

hi,
the idea with the child theme is to have the same file structure but different functionality in those files.

but you need to stick with a theme version for this to work, if you update the theme then you have to update also your files functionality in case those files got change in the last update.

try to make plugins, witch are separated by the theme, you can use them with what ever theme you want and you can change the functionality only when needed.

your custom css can be added here: http://screencast.com/t/dmA7qlRdqL (this will be saved in the database)

Thanks for you message.
Radu A.

Lucian
tagDiv Staff

Hi,

You can use the child theme if you don’t want to make the same modification after every update, and yes you have to add it again.
If you want to use child theme you can find out how here: https://forum.tagdiv.com/child-theme-documentation/

Thanks

Lucian
tagDiv Staff

Hi,

You can do it from td_module_blog.php file like this: http://screencast.com/t/jRBHofPH
This file can be modified using child theme as well.

Thanks

alturic
tagDiv Member

anyone? :-/

prose976
Participant
#0

Hello,

I would like to change the title of “Similar Article” to something else. How can I accomplish this using Child Theme.

Thanks for all the wonderful support from TagDiv.

Philip

alturic
tagDiv Member

I suppose I should add, I don’t mean adding new functions, but rather changing existing functions. I know I could just change it in the parent theme but obviously that gets overwritten when you update the theme.

alturic
Participant
#0

Hey guys, so I tend to heavily edit themes to my needs whether it’s stylesheets, function additions or actually getting into the core files of themes (i.e. Newspapers wp-admin files) and since some of the deep files aren’t child-theme compatible I’m curious how you guys handle customizing the theme(s) and still being able to easily update the theme without having to re-do a ton of work?

Do most of you guys customize and then wait for major release updates and then worry about having to do touch-ups or?

OuweAap
Participant
#0

Hi Guys,

Simple question:

How do I set the offset for my frontpage and categories to 5?

I am using the child-theme, so please send me the modification code of the php files.

Thank you 🙂

paulberrow
Participant
#0

Hi, i need to change your social buttons on my ones, coz i need much more different buttons for different social networks. How and where can i do it? I’ve got my own code, it’s bellow in this message.
Adn also i want to place these buttons on the top of every my post, could you help me with this too?

I have a code like this for buttons:
<script type=”text/javascript”>(function() {
if (window.pluso)if (typeof window.pluso.start == “function”) return;
if (window.ifpluso==undefined) { window.ifpluso = 1;
var d = document, s = d.createElement(‘script’), g = ‘getElementsByTagName’;
s.type = ‘text/javascript’; s.charset=’UTF-8′; s.async = true;
s.src = (‘https:’ == window.location.protocol ? ‘https’ : ‘http’) + ‘://share.pluso.ru/pluso-like.js’;
var h=d[g](‘body’)[0];
h.appendChild(s);
}})();</script>
<div class=”pluso” data-background=”#ebebeb” data-options=”big,square,line,horizontal,nocounter,theme=08″ data-services=”facebook,twitter,vkontakte,surfingbird,odnoklassniki,google,moimir,pinterest,tumblr,yandex”></div>

Lucian
tagDiv Staff

Hi,

You can copy the tagdiv gallery slider function from the function.php file and make changes to it in child-theme.

Thanks

OuweAap
Participant
#0

Hi,

I would like to include the Justified Image Grid (JIG) plugin (see http://goo.gl/oHZyn) into my frontpage and all category pages. I am using a child-theme.

I already have to correct code to insert into the php files, but do not know where to exactly insert the code (and in which files) to achieve this.

Take a look here for illustration:

1. Frontpage: http://goo.gl/EIFJmk
2. Category: http://goo.gl/EcYQBv

Can you help out? Where exactly do I put the php code? What file and what line in the file?

Thanks 🙂

OuweAap
Participant
#0

Hi Support,

Please take a look here: http://goo.gl/fSaU7L

Two questions:

1. How do I remove the complete category block (and sub categories) from each category page?

2. How do I prevent these grey block in the slider? Is there an option to have the image automatically fit/stretch? Should I change the background color? I have this with almost all images, very annoying. How to avoid/fix this?

I use a child theme, so please let me know what code to insert/remove from which php file.
Custom css code is also fine 🙂

Thank you.

albanhops
tagDiv Member

If I can help, I found the lines in the CSS file to “restore” my configuration. I specify that I use a child-theme.

Line 2100 : .td.post-text (for post font) – I simply erased this parameter.

And I erased also those lines for my titles :

.td-post-text-content h1,
.td-post-text-content h2,
.td-post-text-content h3,
.td-post-text-content h4,
.td-post-text-content h5,
.td-post-text-content h6 {
font-family: ‘PT Sans’, sans-serif;
color: #222222;
font-weight: normal;
margin: 25px 0px 27px 0px;
}
.td-post-text-content h1 {
font-size: 40px;
line-height: 46px;
font-weight: bold;
}
.td-post-text-content h2 {
font-size: 36px;
line-height: 42px;
font-weight: bold;
}
.td-post-text-content h3 {
font-size: 32px;
line-height: 38px;
font-weight: bold;
}
.td-post-text-content h4 {
font-size: 28px;
line-height: 34px;
font-weight: bold;
}
.td-post-text-content h5 {
font-size: 25px;
line-height: 32px;
font-weight: bold;
}
.td-post-text-content h6 {
font-size: 22px;
line-height: 28px;
font-weight: bold;
}

  • This reply was modified 12 years by albanhops.
  • This reply was modified 12 years by albanhops.
simchris
tagDiv Member

Hi,
this is what we do on our sites, in the functions.php file .. this overrides the default quality setting and is a WordPress function, not a hack. We have our set to “50” — for a portfolio site or photography site, you might choose “60” (it’s not a “percentage” of compression but a quality factor).

—-from my old post in the pagespeed thread–
For example, you could set the compression of images to something like 60% or even 50% in your child theme functions.php … will only change level on new images uploaded unless you use the regenerate thumbnails plugin or similar.

add_filter( 'jpeg_quality', create_function( '', 'return 50;' ) );

NOTE: Download your existing image files via FTP for safety backup, before you apply this with “regenerate thumbnails” as it will overwrite old files with the lower quality optimized images.

Lucian
tagDiv Staff

Hi,

You can do it using Revolution Slider.
First create a Slider with posts that you want to be displayed in the slider. If you don’t know how to create a slider follow this steps:
https://forum.tagdiv.com/topic/revolution-sliders-source-post-not-working/#post-15382

Then you have to edit slider template and set the navigation type to bullet and the navigation style to round like this : http://screencast.com/t/VyfEV6kM

Last step, add this custom CSS in Theme Panel > Custom CSS:

/* change the bullet's default background */
.tp-bullets .bullet {
	background: #000 !important;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	padding: 3px;
}

/* adjust bullet background on mouse over */
.tp-bullets .bullet:hover {
	background: rgba(0, 0, 0, 0.65) !important;
}

/* represents the numbers that will be shown */
.tp-bullets .bullet:after {
	position: absolute;
	top: 6px;
	left: 9px;
	color: #FFF;
	font: bold 12px Arial;
}

/* First Bullet */
.tp-bullets .bullet:nth-child(1):after {
	content: "1";
}

/* Second Bullet */
.tp-bullets .bullet:nth-child(2):after {
	content: "2";	
}

/* Third Bullet */
.tp-bullets .bullet:nth-child(3):after {
	content: "3";	
} 

/* 4-th Bullet */
.tp-bullets .bullet:nth-child(4):after {
	content: "4";	
} 

/* 5-th Bullet */
.tp-bullets .bullet:nth-child(5):after {
	content: "5";	
} 

/* 6-th Bullet */
.tp-bullets .bullet:nth-child(6):after {
	content: "6";	
} 

/* 7-th Bullet */
.tp-bullets .bullet:nth-child(7):after {
	content: "7";	
} 

/* 8-th Bullet */
.tp-bullets .bullet:nth-child(8):after {
	content: "8";	
} 

/* 9-th Bullet */
.tp-bullets .bullet:nth-child(9):after {
	content: "9";	
} 

/* 10-th Bullet */
.tp-bullets .bullet:nth-child(10):after {
	content: "10";
        left: 5px;	
} 

/* 11-th Bullet */
.tp-bullets .bullet:nth-child(11):after {
	content: "11";
	left: 5px;
} 

/* 12-th Bullet */
.tp-bullets .bullet:nth-child(12):after {
	content: "12";
	left: 5px;
} 

/* 13-th Bullet */
.tp-bullets .bullet:nth-child(13):after {
	content: "13";
	left: 5px;
} 

/* 14-th Bullet */
.tp-bullets .bullet:nth-child(14):after {
	content: "14";
	left: 5px;
} 

/* 15-th Bullet */
.tp-bullets .bullet:nth-child(15):after {
	content: "15";
	left: 5px;
} 

/* 16-th Bullet */
.tp-bullets .bullet:nth-child(16):after {
	content: "16";
	left: 5px;
} 

/* 17-th Bullet */
.tp-bullets .bullet:nth-child(17):after {
	content: "17";
	left: 5px;
}

/* 18-th Bullet */
.tp-bullets .bullet:nth-child(18):after {
	content: "18";
	left: 5px;
} 

/* 19-th Bullet */
.tp-bullets .bullet:nth-child(19):after {
	content: "19";
	left: 5px;
} 

/* 20-th Bullet */
.tp-bullets .bullet:nth-child(20):after {
	content: "20";
	left: 5px;
}  

/* 21-th Bullet */
.tp-bullets .bullet:nth-child(21):after {
	content: "21";
	left: 5px;
} 

/* 22-th Bullet */
.tp-bullets .bullet:nth-child(22):after {
	content: "22";
	left: 5px;
} 

Result: http://screencast.com/t/i2H6Hh4rd

Hope this helps!
Thanks

thomaspe
tagDiv Member

Speed Booster didnt play well with my child-theme. Unfortunately.
It always displays the blueish original layout.

  • This reply was modified 12 years by thomaspe.
Lucian
tagDiv Staff

Hi,

You can find and make changes to the code for more article box from td_more_article_box.php file http://screencast.com/t/wTrOmGVv5nBg

Unfortunately this file can’t be modifyed via child-theme.

Thanks

rbaccaro
Participant
#0

Hi,

Is there any way we can add our own code in the More Article Box?

We use YARPP as related posts and I would like to call from More Article Box.

I hope I do not need to touch the theme files and create on the child theme or functions.

Thank you,

simchris
tagDiv Member

Ah. Makes sense on subdirectory

If you click on one of the 404s in Google webmaster tools does it say WHERE the soft 404s are being linked FROM ?.

If pages on your site, you may want to go to one of those pages and look at the META data at header and footer and see if anything is linking into that folder with wrong URL.

If you’re using child theme, make sure you have any referential links consistently with a trailing slash.

Alternately, you could use Yoast SEO and activate the “enforce trailing slash” which will force a trailing slash on everything and redirect anything which is missing it. Might be simplest fix for you, if you exhaust everything else.

Lucian
tagDiv Staff

Hi,

Try to comment them from function.php like this: http://screencast.com/t/AJFofBi3Ym
You can modify the function.php file within child theme: https://forum.tagdiv.com/child-theme-documentation/

Thanks

prose976
Participant
#0

Hello,

I hope you can help me. I would like to reduce the blank space between Article Title and the top of the Article Content. I am not using Category Tags. Is there any way to accomplish this using the Child Theme?

Thanks for the continued excellent customer service.

Philip

eduardoarandah
Participant
#0

I see that the theme always loads these fonts, even when I don’t need them
google-font-opensans-css
google-font-pt-sans-css
google-font-oswald-css
google-roboto-cond-css
google-fonts-style-css

This doesn’t make sense, how to fix it?
(without changing the theme files, I’m using child theme)

bobbyd67
tagDiv Member

Just updated to 3.9.2 and 4.23 of visual composer, but animations are still not working.

Please help as this is a customers site of mine.

Also tried all the standard word press themes like Twenty Twelve etc and the animations worked. But as soon as I go back to Newspaper or the child theme it wont work?

Thanks in advance
Darren

  • This reply was modified 12 years by bobbyd67.
Viewing 25 results - 12,626 through 12,650 (of 12,866 total)