Forum Replies Created

Viewing 15 replies - 16 through 30 (of 192 total)
  • Since you don’t remember creating the menu, and there is no menu created in the back-end, I’m gonna go ahead and guess that the theme automatically creates a menu and displays it, as it is listed in the Inspect as the primary menu.

    So the solution then would have to be to go ahead and create your own menu. Then you can customize it as you see fit.

    Or add some css to hide the menu or edit the header.php to remove the menu altogether, if that’s what you want.

    Thread Starter SaladGoat

    (@saladgoat)

    I feel like I’m getting close….
    I did a search through all the WordPress files and found this code in wp-includes/media-template.php:

    <span class="setting size">
    			<label for="gallery-settings-size" class="name"><?php _e( 'Size' ); ?></label>
    			<select id="gallery-settings-size" class="size" name="size"
    				data-setting="size"
    				<# if ( data.userSettings ) { #>
    					data-user-setting="imgsize"
    				<# } #>
    				>
    				<?php
    				/** This filter is documented in wp-admin/includes/media.php */
    				$size_names = apply_filters(
    					'image_size_names_choose',
    					array(
    						'thumbnail' => __( 'Thumbnail' ),
    						'medium'    => __( 'Medium' ),
    						'large'     => __( 'Large' ),
    						'full'      => __( 'Full Size' ),
    					)
    				);
    
    				foreach ( $size_names as $size => $label ) :
    					?>
    					<option value="<?php echo esc_attr( $size ); ?>">
    						<?php echo esc_html( $label ); ?>
    					</option>
    				<?php endforeach; ?>
    			</select>
    		</span>

    I added my custom size at the top of the array and now my Gallery shows my custom size as the default, as well as showing another of my custom sizes at the bottom of the list (despite not being included here).

    Obviously this is not the ideal solution, as this change will be erased on the next WordPress update. So I need some help to turn this into something I can add in my child’s functions.php to make it a permanent fix.

    This code begins at line 876, but the full Gallery code begins at line 831.

    Can you please help?

    Thread Starter SaladGoat

    (@saladgoat)

    I have found this article with a code that looks like it should do what I want, but it appears to do nothing.
    https://amethystwebsitedesign.com/how-to-get-larger-images-in-a-wordpress-gallery/#method2
    It’s also almost nine years old, so maybe WordPress has changed some stuff since then?

    It shows black text on my screen. Did you figure it out?

    Glad to help!

    Hmm, I’m not sure what that php code will do, but I can tell you that things are much simpler than that. Probably.

    Open the header.php file (for the Russian version of the site) and find the line
    <body <?php body_class(); ?>>
    Now you can just add your new class to that, like so:
    <body <?php body_class( 'Russian' ); ?>>

    Then the css
    body.Russian {font-family: "Times New Roman";}
    should work throughout the site.

    I don’t use the block editor so I can’t speak to how it displays when you edit vs published, but if the Preview is the same as Published then you can at least test things that way.

    I’m not sure but I think it has something to do with it all being in a flex box.

    The hourglass and the text beside it, and the clock and the text beside it, each take up exactly the same width. That’s how flex works – it assigns the same amount of space to each item. (On my screen, it’s 122px for each, so when you have a 50px icon in a 122px space, it centers it, adding equal margins on each side.)

    And that’s about all I know about flex – I’ve never been able to get it to work for me! lol

    My solution – which may not be the best – would be to put the icons into the same cell as the text they represent, so that they are forming two columns instead of four.

    Not sure what you mean, but open up header.php and have a look. Add or remove things in there as you see fit.

    Obligatory caution:
    When you update the theme to the next version, all your changes will be lost, so be sure to create a child theme and make your changes there, where they will be safe from updates.

    If you have separate pages for the separate languages – or at least separate headers – then you should be able to add a class to the body tag in the header.
    Once you do that, you can define the font-family for each page.

    So, for instance, your header would have
    body class="Russian"
    Then your css would have
    body.Russian div.elementor-widget-container {font-family: "Times New Roman";}

    There are different fonts used for different areas (such as the menu) so you can define each area’s font-family separately, or if you want to use the same font throughout, just set
    body.Russian {font-family: "Times New Roman";}

    You wouldn’t have to set a different class for the English site, as this will only affect the Russian pages.

    If you are referring to the large Blog link at the top of the page, you need to define border in the amp-wp-33050e8 class.
    For example:
    .amp-wp-33050e8 {border: 1px solid;}
    You have border-radius defined, but that’s for the corners, not for the border itself.

    As for the Read More excerpts, I don’t use them, so I don’t know what they should look like. It looks like they don’t contain anything, so maybe that’s why they are blank? Try re-creating one and see if it shows up?

    You’re looking for text-shadow. Lotsa good info here: https://www.w3schools.com/cssref/css3_pr_text-shadow.asp

    A bit hacky, and may mess up other things so keep an eye out, but give this a try, in your stylesheet:

    div.nav-links a.next span {display: inline-block; transform: scale(-1, 1);}

    If this also messes with your text on that line, add (after that):

    div.nav-links a.next span.nav-next-text {transform: none;}

    The transform does a mirror effect, so you can repeat this on the prev arrow as well.

    Good luck!

    Thread Starter SaladGoat

    (@saladgoat)

    Thanks for your suggestion, I now tried
    echo ( get_the_author_ID() );
    echo get_the_author_ID();
    get_the_author_ID();

    and repeated all without get_

    None worked.

    I also tried
    echo ( get_the_author_ID($curauth) );

    But that also did not work.

    Thread Starter SaladGoat

    (@saladgoat)

    $curauth is meant to represent “current author” and is defined in the first line of the code I found in the Codex:

    <?php 
    $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
    ?>

    When I tried to add the avatar to the page, the recommended code didn’t work – it returned only “mystery person” avatars:
    <?php echo get_avatar( get_the_author_meta( 'ID' ), 32 ); ?>

    So I changed it to
    <?php echo get_avatar( $curauth, 32 ); ?>
    and it showed the proper avatar for each author.

    But I’ve tried get_the_author_meta( ‘ID’ ) as well as $curauth in the <title> and neither seem to work.

    I’m not sure if I’m missing something or just using the wrong codes.

    Thread Starter SaladGoat

    (@saladgoat)

    I tried adding
    get_the_author($post->ID)
    but it did not work.

    I don’t know what else could be affecting it. If I type text in there, it works fine. For instance,
    echo ( "hello" );
    then shows ‘hello’ in the title bar.
    So I know I’ve done everything else right. It’s just getting it to display the author’s name that is vexing me.

    But you say that using
    echo get_the_author_meta( 'display_name', $curauth );
    should work?

Viewing 15 replies - 16 through 30 (of 192 total)