How to restore deleted wordpress site?

You’d need to install a blank WordPress install somewhere…locally or on the domain you want to transfer it to and check the “Discourage search engines” option. Then use WordPress importer to import the content, I assume you only exported all posts and pages? You’ll need to manually set the rest such as Site Name and … Read more

how can i change the html and the css of my word press theme that I bought?

First of all, it depends on what theme you have. Many premium themes provide an option for users to enter their custom CSS. It that is the case you can add your styles there. If not, follow the link to create a child theme – http://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/ You can add your custom style in child theme’s … Read more

How to create a shortcode with HTML code in it and custom parameters/

As per the shortcode documentation, your shortcode callback recieves any parameters set by the user in a $atts variable. You can combine them with any default values you might have with shortcode_atts(). function newsletter( $atts ) { $atts = shortcode_atts( array( ‘url’ => ‘https://domain.com/newsletter/z2o7q6’, // change default value as needed ‘headline’ => ‘Newsletter Box Headline’, … Read more

Custom CSS File wont work on second Page

Sounds like your are not creating a proper WordPress template when you copy your index.php. Here you can find the list of standard template files: https://codex.wordpress.org/Theme_Development#id=%22Template_Files_List%22 And here you can learn how to create a custom template: https://codex.wordpress.org/Theme_Development#Custom_Page_Templates My guess is you need to add the following to the top of your index copy. Then … Read more

Applying my own css classes in wp_menus 3?

Do you need to modify walker or hook into it unmodified? Since there is filter provided for that id, it is easy to hook into. Try this: add_filter( ‘nav_menu_item_id’, ‘modify_menu_item_id’ ); function modify_menu_item_id( $text ) { static $myCounter; if( !isset( $myCounter ) ) $myCounter = 0; return ‘menu-item-‘ . ++$myCounter; } Update Changing walker // … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)