magento2 – Change the title of the Crossell and Gaps product block

I implemented the extension development of Crosssell Products on Product Page with Magento 2 on Magento 2.2.0. It is currently running, but several changes are required.

  1. The gap between the previous block content and the next content (either margin or space)
  2. The title said "more options" with "you may also like?" Need to change

I attached this screenshot here:

Cross-sell product on the product detail page

I use Unero Theme for additional information (I put the XML block in the theme frontend of Magento Catalog -> catalog_product_view.xml) and I am still at an early stage to understand Magento codes and developers. Thanks in advance.

php – Replaces the post title with a filter

I replace the post title with the filter function.
There is a list of related titles on the page, but I don't want to change these titles. Is it possible to determine the actual contribution in the function and only change this title?

add_filter('the_title', 'replace_title');
function replace_title($title){
$titleprefix = '';
if ( in_the_loop() )
    return $titleprefix . $title;
    return $title;

8 – How do I display the current page title in the branch template of a web form?

I've seen some questions about this (this is the most interesting I could find) but couldn't find a satisfactory answer.

I have a Drupal website where the webmaster can create a certain type of content. There is an embedded web form on this content type that adjusts the subject field so that the webmaster can know where the web form was sent from: the subject would look like this New submission has been made - (page title), With Drupal tokens, I could get this thing going without a problem, but I also need to display the page title in the branch template being sent.

So far I've tried the following:

- (current-page:title) {# without webform_token #}

- {{ webform_token('(current-page:title)') }} {# displays '(current-page:title)' #}

- {{ current_page }} and {{ current_page.title }} {# doesn't display anything #}

- {{ webform_token('(current-page:title)', current_page) }} {# Can't even save the change, I get an ajax error #}

So … is there a solution? I am considering using the "create a hidden box with the title of the current page" solution, but my lead developer will not be found by this solution unless there are no other options

thank you in advance

Development – Microsoft.SharePoint.Client list item update (add) clears the title value

I am working on an ASP.NET 4.5 C # MVC 5 project that will be integrated into a SharePoint website using Microsoft.Sharepoint.Client. One of the methods needs to add an SQL record and then use 2 fields from that record, assign them to the Title field (created by SharePoint by default) and the other to a PartnerID numeric field to create an item to add to SharePoint.

The SQL part runs successfully, but when you add it to SharePoint, the ID is set correctly and the title value is cleared. This happens even though the title value is the correct size and matches the single line of the text data type. Please read the following excerpt and tell me what I could do wrong.

List listCPD = apiContext.Web.Lists.GetByTitle("CommunityPartner");
ListItemCreationInformation creationItem = new ListItemCreationInformation();
ListItem lstItem = listCPD.AddItem(creationItem);

lstItem("Title") = string.IsNullOrEmpty(cPAModel.CommunityPartner) || string.IsNullOrWhiteSpace(cPAModel.CommunityPartner) ? "Title not specified" : cPAModel.CommunityPartner; //check for empty string to ensure no empty string from user input level
lstItem("PartnerID") = cPAModel.CommunityPartnerID;


Tables – Should the title in SVG describe the symbol or value it represents?

Suppose I have a table with symbols as a clear form of value. So I looked at the title in the svg element. In this scenario, the title should describe the shape of the SVG

Enter image description here

or the value that the symbol represents?

Enter image description here

The documentation vaguely suggests that it should describe the shape. But I don't see any value in it.

media – WordPress image title attribute becomes permalink?

Ah, you discovered attachments 🙂

The media library is not a file browser, and things placed in the upload folder don't just appear in the media library. Have you never wondered how WordPress saved the titles and captions for images?

When you upload a photo, WordPress creates a post of the type next to the physical file attachment, As we know, posts have title, content, post meta, etc. The parent post is the post to which an attachment is attached or to which a post is uploaded (which is not reliable, however, since an image appears in more than one post) can).

One consequence of this are attachment pages that have their own template. When you add an image, you can link to its media page. You can use this as an opportunity to add comments, show more details, etc

As Jacob said, these are normal and have always existed in WordPress and are intentional. It is not something that has occurred as an error, it is not strange, and it is present in some form on every WordPress site.

You can get them in code by getting an attachment permalink or using the dedicated API function. You can also simply click the Attachment View Page link in an attachment view:

Enter image description here

You can even edit the permalink on the attachment editing page:

Enter image description here

On my site there is even a yoast SEO box to optimize the attachment page for rankings

Filters – With the new (Gutenberg) editor, you can set the post title based on the custom field

With the old WordPress editor, it was possible to set the title of a custom post to a custom value based on another custom field wp_insert_post_data Filter. This is described here, for example:

With the new Gutenberg editor, however, this no longer works (at least for me). I read that the Gutenberg editor uses rest API calls to store data, but I couldn't find which hooks / filters to use to change these calls.

I want to do the following: Set the post title of a custom post type based on the value of a custom field, such as the name date,