Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
nolandolce
tagDiv Member

Hi Bettina,

I found the below code to remove the website field (placing it in functions.php). It was posted in various WordPress forums, however, it doesn’t seem to work with Newspaper.

//add_filter(‘comment_form_default_fields’, ‘website_remove’);
function website_remove($fields)
{
if(isset($fields[‘url’]))
unset($fields[‘url’]);
return $fields;
}

Can you suggest code that will work with this theme? Thanks!

nolandolce
tagDiv Member

Yes that was it, thanks!

Also, when I changed the excerpt length within the theme panel, all of the title lengths changed to that number too. I had to go through the whole site and change each title length manually for all flex blocks and post loops. Just FYI.

nolandolce
tagDiv Member

Thanks, Anamaria, I was able to do that, however, the excerpt lengths again don’t work after a certain number of posts. If you go to our homepage, then scroll through 3-4x, you can see all of the posts show the full excerpt and are not limited by the letters.

https://rareparenting.com/

nolandolce
tagDiv Member

Ok thanks, Bettina!

nolandolce
tagDiv Member

Hi Bettina,

I was able to figure this out by adding in CSS for the image specifically, instead of the caption. For anyone reading, here is what I used:

[class^=”wp-block-“]:not(.wp-block-gallery)
figcaption{
color: grey;
font-style: normal;
font-size: 11px !important;
text-align: left;
padding: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
}

[class^=”wp-block-“]:not(.wp-block-gallery)
img{
padding: 0px !important;
margin-top: 0px !important;
margin-bottom: 2px !important;
}

Thanks!

nolandolce
tagDiv Member

Hi Bettina,

The editor doesn’t fix the space between the image and captions. For the Live CSS, I inputted this:

[class^=”wp-block-“]:not(.wp-block-gallery)
figcaption{
color: grey;
font-style: normal;
font-size: 11px !important;
text-align: left;
padding: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
}

Everything you see above works, except for the margins. Do you know what the correct text should be to make the margins adjust using the live CSS? Thanks!

nolandolce
tagDiv Member

Just to follow up, it’s Jetpack. We recently installed Jetpack and it’s not working with the theme.. or at least, it’s causing the media & text blocks to stack. When we deactivated Jetpack, the media & text block works again. Any ideas why this may be happening? Thanks!

nolandolce
tagDiv Member

Hi Bettina,

Following up on this, how to I change the margins under the photo? Do you know by chance? Thanks!

View post on imgur.com

nolandolce
tagDiv Member

Thanks!

nolandolce
tagDiv Member

Thanks, Anamarie – The theme I use within Newspaper has the featured image set as Single Post Featured Image. It doesn’t include an option for height, as you show. I’ve therefore removed that block and replaced it with the Single Post Bg Featured Image, so it works now. Perhaps you may want to replace that block across your theme options.

Thanks!

nolandolce
tagDiv Member

Yes, because I added the code (see above) so now it works. 🙂

Thanks, Bettina!

nolandolce
tagDiv Member

Hi Bettina,

Just to follow up, I found the below code and added it to the functions.php file, and captions now work, for future reference for anyone else! 🙂

To find the functions.php file:
Go to Appearance -> Theme file editor -> functions.php appears on the right.
Instructions:
Copy and past the below at the bottom of the code.

//filter Media & Text block output to add image caption
function media_block_caption( $block_content, $block ) {
if ( $block[‘blockName’] === ‘core/media-text’ ) {
$mediaId = $block[‘attrs’][‘mediaId’];
if($mediaId){
$image = get_post($mediaId);
$image_caption = $image->post_excerpt;
if($image_caption){
$content = str_replace(‘</figure>’, ‘<figcaption>’ . $image_caption . ‘</figcaption></figure>’, $block_content);
return $content;
}
}
}
return $block_content;
}

add_filter( ‘render_block’, ‘media_block_caption’, 10, 2 );

nolandolce
tagDiv Member

Hi Bettina,

It’s not possible to display a simple image with text to its side. Let me know if you know something I don’t?

As far as I know, that is the very purpose of Gutenberg blocks, to provide this possibility.

Newspaper should work with Gutenberg.. it’s pretty standard?

Having an image appear next to text is crucial. Otherwise you’re suggesting all images live in their own row, always.

Please let me know?

Thank you!

nolandolce
tagDiv Member

Hi bettina,

In the video you can see I created captions for both the featured image and the image & text block. Only the featured image caption displays. The image & text block does not show captions, across the whole website.

https://www.loom.com/share/e39a500da26a401f894b8ec8b774d4b4?sid=d4f54530-97f8-4234-8b0c-73becd46bb28

Thanks,

Megan

nolandolce
tagDiv Member

Hi Bettina,

Yes I know that. The captions work fine on all images across the site (images in posts as well as featured images), EXCEPT for the media & text blocks. Captions have been inserted, correctly, on some of those images in the link I included in this post, yet they do not display. Please let me know.

Thanks.

nolandolce
tagDiv Member

Hi Bettina,

I referred to the media & text blocks, not the featured image. I have captions for some of the images in the post, and they aren’t displaying.

Thanks!

nolandolce
tagDiv Member

Hmm ok I will ask them. Thanks!

nolandolce
tagDiv Member

Hi Bettina,

No, he didn’t create that page.. let me know?
Separately, the log-in isn’t actually working. I tested it, and it says:
Please correct the error(s) below.
register: Error: Please enter a password.

Even if a password is entered, it still says the above. Please let me know?

Thanks!

https://rareparenting.com/login/

nolandolce
tagDiv Member

Thanks, yes, Alin fixed it. How do I edit the log-in page? If I go to the page:
https://rareparenting.com/login/
while logged into WP, it redirects me to a dashboard, so I’m unable to use tagdiv to edit it.

nolandolce
tagDiv Member

Hi Bettina,

The block was from the theme. We didn’t add any custom code to it. I did try to add a new flex1 block and you’re right the pagination works, however, in mobile the blocks don’t stack the way they do in the current block. So it’s possible the theme had added code in order to get the blocks to stack? Either way, we do need that block to operate in the same way as it does now (as it came in the theme). As such, do you know how to get a new block to stack OR any idea of how to fix the pagination in the theme’s block?

Thanks!

Megan

nolandolce
tagDiv Member

Hi Anamaria, yes thank you, the TagDiv developer working on the site was able to fix it. However, how do I change ” Save my name, email, and website in this browser for the next time I comment.” We added a plug-in to remove the website field, as it’s not necessary. So how can I change the text there, as I don’t need to mention “website” since the field is gone. Thanks!

nolandolce
tagDiv Member

Ok, thanks!

nolandolce
tagDiv Member

Hi Anamaria,

I’m really sorry but that doesn’t work. Column text/text with title both need to be added to the page. Adding them to the page doesn’t affect the newsletter. If you are clicked into the newsletter, they don’t have an option to access or add column text/text with title.

nolandolce
tagDiv Member

Sorry but I still don’t understand. How do I use the column text to display the entire form with additional fields?

Viewing 25 posts - 26 through 50 (of 117 total)