wp admin: only the last option of the theme options is saved in the database

I have these admin page functions where I am trying to ask the administrator for some text data.

The problem that only the last field is being saved and existed in the database, the main ones do not exist in the database.

Add options to the administration page:

 register_setting( 'top-data-group', 'yourLogo');
 register_setting( 'card1-group', 'card1_text');
 register_setting( 'card4-group', 'card4_text');


  add_settings_section('top-options', 'Top Information', 'top_options', 'top-data' );
  add_settings_section('card1', 'Card 1', 'card1_options', 'top-data' );
  add_settings_section('card4', 'Card 4', 'top_options', 'top-data' );


 add_settings_field('yourLogo', 'Logo Image URL:', 'yourLogoImage_callback', 'top-data', 'top-options'  );
 add_settings_field('card1_text', 'card 1 text:', 'card1_text_callback', 'top-data', 'card1'  );
 add_settings_field('card4_text', 'card 4 text:', 'card4_text_callback', 'top-data', 'card4'  );

callback functions:


function card1_text_callback (){
    $preText =  esc_attr( get_option('card1_text'));
     echo '  ';
 }


function card4_text_callback (){
    $preText =  esc_attr( get_option('card4_text'));
     echo '  ';
 }

function yourLogoImage_callback (){
    $preText =  esc_attr( get_option('yourLogoImage'));
     echo '  

use external or internal image url , preferred (300 * 50 px)

' ; }

the form page:

Top Section

The last option is being saved in the database, the upper ones are empty.

theme development – Brand Woocommerce

I am facing a problem with adding or at least joining product through API to a specific brand through Products-> Brands. I know it could be a specific topic, but I am sure there must be a solution.
Neither method (GET, POST, PUT) does not display or add marks. 🙁 and I have no idea how I can link it without adding an API-friendly plugin as the perfect woocommerce brand plugin.
But the problem is that when I use this plugin in that case, other filters work separately from the Perfect brand plugin and it makes using the website complicated from code point of view.

So I am wondering if any other solution could be provided to make the brands work or unite via API.

Thank you.

themes: upgrade to Drupal 8, custom theme that does not use a referenced CSS file

I am updating a theme from Drupal 7 to Drupal 8. I am referring to .css files in mytheme.library.yml that don't seem to be entering the site.

I have searched online and even copied sample codes and replaced the names appropriately. However, I don't see any .css files being applied or referenced in the source code or Developer Tools.

If these files look correct, any address of what might be the cause will be appreciated. If it's permissions let me know what permissions it MUST be!

I've cleaned the cache hundreds of times, after each change, as well as using incognito mode, so I know it's not a site or browser caching issue.

Thank you.

Content of sites / all / themes / mytheme / mytheme.info.yml

name: MyTheme
type: theme
description: My theme.
core: 8.x
base theme: bootstrap
logo: logo.png

regions:

  navigation: 'Navigation'
  header: 'Top Bar'
  highlighted: 'Highlighted'
  help: 'Help'
  content: 'Content'
  sub_content: 'Sub-content'
  sidebar_first: 'Primary'
  sidebar_second: 'Secondary'
  footer: 'Footer'
  page_top: 'Page top'
  page_bottom: 'Page bottom'
  footer_firstcolumn: 'Footer first column'
  footer_secondcolumn: 'Footer second column'

libraries:
  - mytheme/global-assets

Content of sites / all / themes / mytheme / mytheme.library.yml

global-assets:
  version: VERSION
  css:
    theme:
      css/main.css: {}
      css/bootstrap.css: {}
  js:
    js/main.js: {}
    js/bootstrap.min.js: {}
    js/enquire.min.js: {}
    js/jquery.main.js: {}

Any help or direction would be appreciated.

Thank you

Website design: what theme should I buy for the best user experience?

We are developing an information system for students and we want to open a website for advertising and explain its functions. But we could not be sure exactly what item we should buy for this purpose.

We remove most of the themes and we have 3 themes now. Could you help us the best for the best user experience for this purpose?

  1. http://themes.dhrubok.website/bufet/home-8/
  2. https://livedemo00.template-help.com/wt_prod-20462/
  3. http://www.nurseitmukaytegin.com/envato-templates/xen/

Note: Our clients will be academics from 30 to 60 years old and university managers.

Thank you all for your help guys!

Call a plugin function from WordPress theme header file

wp-content / plugins / ultimate-member / includes / core / class-permalinks.php

namespace umcore;
class Permalinks { 
        function __construct() {
            add_action( 'init',  array( &$this, 'activate_account_via_email_link' ), 1 );
        }
}

I want to call this function & # 39; active_account_via_email_link & # 39; from wordpress / theme / header.php

My code so far:

$action = new umcorePermalinks;
$action->activate_account_via_email_link();

The error :
Fatal error: Error not detected: class & # 39; um core Permalinks & # 39; was not found. at /home/xyzz/public_html/xyz/wp-content/themes/university/header-frontpage.php:5 ​​Stack Trace: # 0

boot theme: custom regions are tweaked

I'm using the Bootstrap Neighborhood subtopic on a Drupal 8 site. I want to add similar regions to the "Featured_ *" regions.

Regions are added to the info.yml file

regions:
  # ... origional regions ...
  # new regions
  products_top: 'Products top'
  products_first: 'Products first'
  products_second: 'Products second'
  products_third: 'Products third' 

Add regions in templates/page.html.twig

    {% if page.products_first or page.products_second or page.products_third %}
      
    {% endif %}

After applying the theme, I found that the page.featured_ * and page.products_ * regions are different:


Because they are different?

Any WordPress theme and plugin for the blog with a subscription plan?

It's about web design and development.

My client wants the magazine's website with a subscription plan. You want to post some topics on the website if visitors want to read all the topics they have to buy a subscription.

Only the subscriber can read all the topics of the magazine.

I am a mid-level WordPress developer, I have no idea how to do it.

I can't find competitors or reference websites.

Can anyone suggest a theme or plugins for this?

Thank you very much in advance.

New theme in the jungle | Forum promotion

I just updated the forum topic I host, Juneberry & # 39; s Jungle. This includes a new style that is mostly dark and green, but also features some home user ranges and banners. I hope to get a lot of information on this in the near future. At the moment, I am truly proud and grateful to my members for giving their honest insight on the subject.

theme development – Edit footer via customizer

I am creating my own theme. I would like to edit the footer in the customizer. I was able to enable custom logo etc. but i can't find a solution to enable footer button in customizer.

How can I enable the button in the customizer to edit the footer content? I haven't found anything with add_theme_support(). Is there another way to edit the footer in the backend?