Search Results for 'child theme'

    No search results were found in Documentation!

Results from the Forum
xingkuan
tagDiv Member

But , My website Not like you. Big logo and not responsive.

Radu A
tagDiv Member

hi,
you can add what logo image do you want, as big as you want, many people use this,

and the logo is responsive :
http://screencast.com/t/b3rU0L6G
http://screencast.com/t/n11Jvvpnd

Thanks for you message.
Radu A.

xingkuan
tagDiv Member

i have some question.

Why logo on Head style 1 is bigger than size of logo and don’t responsive on mobile.

please answer

thank you.

simchris
tagDiv Member

Child theme is only needed if you intend to customize the templates by hand. 🙂

WordPress documentation:
https://codex.wordpress.org/Child_Themes

A WordPress child theme is a theme that inherits the functionality of another theme, called the parent theme. Child themes allow you to modify, or add to the functionality of that parent theme. A child theme is the safest and easiest way to modify an existing theme, whether you want to make a few tiny changes or extensive changes. Instead of modifying the theme files directly, you can create a child theme and override within.

xingkuan
Participant
#0

i have some question.

after install main theme, Should will i install child-theme?

Thank you.

Radu A
tagDiv Member

hi,
we did not test with the child theme, try on the main files.

Thanks for you message.
Radu A.

Bryson T
tagDiv Member

And what a difference a couple of days away makes…

Module 5 is apparently used by a lot of the blocks as any showing the medium sized thumbnail on the home page now show no featured image – affecting far more than the status posts originally intended for this behavior.

Additionally, the changes to the excerpts from words to characters, though set at 250, shortens every slider title to about 10 characters. Those titles aren’t long enough or wide enough to fill the space they have on a default setup.

Now, how do I get the desired effect with screwing over the entire home page and without directly editing block 8 forcing me to replicate the changes with each new version released? I see child themes cannot replace blocks, correct?

I could do this another way but I need to know what modules blocks 1 and 2 use. I currently blocks 1, 2 and 8 on my home page. Check my development site where I’m working on this if you need to; http://wp.me/P4vfUC-2so.

osckar
tagDiv Member

Hi:

I tried the modifications, but I guess they are not working when using a child theme, changes are not overriding the main files :/

Bryson T
tagDiv Member

That works perfectly. Added the custom module 5 to the child theme and removed the date, author, comments/views lines as well and it looks great. Thanks.

academicdigital
tagDiv Member

I’ve also figured out how to add extra subcategories…

For info for others looking for this info…

in Themes/newspaper/includes/wp_booster/ find the file td_menu.php

edit the ‘array’ and ‘show child cat’ fields (as shown below) to your desired value (here I changed from 5 to 8)

to order the sub categories I used Category Order plugin https://wordpress.org/plugins/taxonomy-terms-order/

Cheers,

Martin

betterretailing
tagDiv Member

Hi Radu,

I’ve just tried placing the ‘td_menu’ file directly into Newspaper not the child theme and it appears to work. newspaper/includes/wp_booster/td_menu (I’ve not tried the second part yet to use that menu on a category)

This is great news!

Won’t this mean though that I’ll have to edit that file every time there is an update to Newspaper?

Thanks,

Radu A
tagDiv Member

hi,

have you try Marius solution on your site (not the child theme)? , duos it worked?

Thanks for you message.
Radu A.

betterretailing
tagDiv Member

Hi Marius,

How does this work for Child themes?

I’ve tried adding a directory called ‘wp_booster’ to the ‘includes’ folder (i.e. my-child-them/includes/wp_booster/td_menu.php) but it doesn’t seem to be working.

Thanks,

Marius
tagDiv Staff

Hi,
Add this in Theme panel -> Custom CSS

.comment-list .comment:last-child {
    border-bottom: 1px solid #F5F5F5;
}
Marius
tagDiv Staff

Hi,
I’m not sure what you have there, see here: http://screencast.com/t/vmUOwGOYb

for me works, no warning, error: http://screencast.com/t/rh8djXHpBv0f

Can you try to add the code directly in Theme root and not in Child theme.

Thanks!

simchris
tagDiv Member

Hi
I’m updating this thread for consistency.

I just upgrade to Newspaper 3.5 and attempting to replicate this, with
Newspaper/includes/modules/td_module_1.php

if I remove the // for author name, it’s NOT printing on the posts although uncommenting on other modules does add the author byline to things like the sidebar modules or the indexes.

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

e.g.,
http://ga-ga.com/1204/beginning-adventure-space-time-reveals-roots-doctor/

I have tried with tagdiv speedbooster on/off; I have mod_pagespeed off to ensure nothing is being cached; not using Jetpack.

This is CLEAN install of Newspaper 3.5; meaning the theme folder was uploaded as fresh folder and prior 2x folder was not over-written, so no mish-mash of old/new theme elements. No child theme being used.

Any idea why that might not be printing on page? Do I need to enable something else to cause the author byline to print on posts?

————————————

To repeat past posts as an opinion here:

“Byline” is one of the most critical things to all newspaper/magazine sites and should always appear below the title of article, or below the featured image; but typically the author and date are shown together in magazines and newspapers, so slightly annoying we still have to manually enable this EVERY update — look at TIME, or NY Times, or LA Times, or CNN, you will see the BYLINE and date top of every article. SO my big REQUEST would be to enable this by default “ON” and then let people comment it OFF which would be the exception vs the rule.

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

Adding this code in functions.php:

add_filter( ‘author_link’, ‘my_multi_author_link’, 10, 2 );

function my_multi_author_link( $url, $user_id ) {
if ( 1 == $user_id ) {
return home_url( ‘flaten’ );
}
return $url;
}

…messes everything up and gives med the following warning/fatal error:
( ! ) Warning: require_once(includes/td_wordpres_booster.php): failed to open stream: No such file or directory in /Users/areflaten/Documents/Websites/www.amerikanskpolitikk.dev/wp-content/themes/Newspaper-child/functions.php on line 16

( ! ) Fatal error: require_once(): Failed opening required ‘includes/td_wordpres_booster.php’ (include_path=’.:/Applications/XAMPP/xamppfiles/lib/php’) in /Users/areflaten/Documents/Websites/www.amerikanskpolitikk.dev/wp-content/themes/Newspaper-child/functions.php on line 16

Marius
tagDiv Staff

Hi,
We will fix to work that file with Child theme in the next update.

Make the same for authors.
Create a custom field for author like you have created for ad

And use the code like http://screencast.com/t/G79rInR3hFv

if (!get_field('hide_author')) {
            <?php echo $td_mod_single->get_author_box();?>
            }

Thanks!

r1kay
tagDiv Member

Hi Marius,

Thank you for the support. Could you take a look at why this code doesn´t work when using a child theme?

Also, where to add the code to show or hide author info?

r1kay
tagDiv Member

Hi Marius,

I seem to got the code working, but it only works when i edit the themes blog module. I have a child theme, but when i edit the child themes blog module it doesn’t work. I have copied the blog module file to Newspaper-Child/includes/modules/module_modifier/ but it only works when i edit the file in the normal theme. All other module files i edited in Newspaper-Child/includes/modules/ seem to work fine. How come this file doesn’t work? All other files in my child theme work, so i don’t know if i’m doing anything wrong?

Also, could you tell me where to paste this code to hide the header ad?

atflaten
tagDiv Member

That’s strange. Guessing this is caused by using the child-theme? Any idea where the root to the problem might be located?

mbasche
tagDiv Member

Wegen der “Custom Sachen” benutzt man ja auch ein Child Theme, sofern die Veränderugen darüber möglich sind.

atflaten
tagDiv Member

Allright.

For example: For the category “Valg”, I want to hide the category tag on post and change the category tag color on post page:

I click save settings, nothing happens:

(PS: The “Valg” category has several sub categories)

When I exit Theme panel, and re-enter, the changes I just made under “Valg” are gone:

Strange.

However, when changing the color for the cateogory “140 Pluss” (which has no sub-categories), it works:

Changing color, for some reason, does not work on a few other categories (without sub-categories) I tested with.

I am using the child theme, but I haven’t made any changes that should affect this. I haven’t installed any plugins either. I am developing the site locally so I don’t have an URL you can check out.

mbasche
tagDiv Member

Folgende Änderungen
In themes/newspaper/wp-admin/panel/views/panel_excerpts.php in Zeile 136

 <div class="td-box-row">
        <div class="td-box-description">
            <span class=" td-box-title td-title-on-row">CONTENT LENGTH</span>
            <p></p>
        </div>
        <div class="td-box-control-full">
            <?php
            echo td_panel_generator::input(array(
                'ds' => 'td_option',
                'option_id' => 'tds_mod3_content_excerpt'
            ));
            ?>
        </div>
    </div>

Dies gibt dir im ThemePanel die Möglichkeit, Zeichenanzahl einzustellen.

In themes/newspaper/includes/modules/td_module3.php in Zeile 25
<?php echo $this->get_excerpt(td_util::get_option('tds_mod3_content_excerpt')); ?>
Das ist die Ausgabe.
Letztere würde ich unbedingt ins Child-Theme packen. Die Adminänderungen musste dir wohl aufschreiben.

FRMedia1981
tagDiv Member

webropolis.com

Jetzt sollte der Link funktionieren. Sorry.

Hatte mal einiges an der CSS geändert, überall gleiche Schriftart und Farbe aber da man bei jedem Update neu anfängt, habe ich dass gelassen.

Mit Child-Themes habe ich leider keine Ahnung. Aber Schriftfarbe hätte ich schon gern komplett in schwarz, so fast schwarz gefällt mir nicht.

Viewing 25 results - 12,726 through 12,750 (of 12,866 total)